summaryrefslogtreecommitdiff
path: root/roundcubemail/index.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-09-04 12:26:30 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-09-04 12:26:30 +0000
commit2f7e7b8c4d59ae6c0389bab08eb13a5a9f95557e (patch)
tree07be3873908fbc5413fa018bfc4603411e6eba8a /roundcubemail/index.php
parent77d16b46a9a76581d8f20bd8e1c6ee39bd5aff54 (diff)
Little improvements for message parsing and encoding
git-svn-id: https://svn.roundcube.net/trunk@336 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/index.php')
-rw-r--r--roundcubemail/index.php22
1 files changed, 14 insertions, 8 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php
index ff73a0030..68c0f1773 100644
--- a/roundcubemail/index.php
+++ b/roundcubemail/index.php
@@ -2,7 +2,7 @@
/*
+-----------------------------------------------------------------------+
| RoundCube Webmail IMAP Client |
- | Version 0.1-20060901 |
+ | Version 0.1-20060904 |
| |
| Copyright (C) 2005-2006, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
@@ -40,7 +40,7 @@
*/
-define('RCMAIL_VERSION', '0.1-20060901');
+define('RCMAIL_VERSION', '0.1-20060904');
// define global vars
$CHARSET = 'UTF-8';
@@ -87,12 +87,6 @@ require_once('PEAR.php');
// set PEAR error handling
// PEAR::setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_NOTICE);
-// use gzip compression if supported
-if (function_exists('ob_gzhandler') && !ini_get('zlib.output_compression'))
- ob_start('ob_gzhandler');
-else
- ob_start();
-
// catch some url/post parameters
$_task = get_input_value('_task', RCUBE_INPUT_GPC);
@@ -104,6 +98,18 @@ if (empty($_task))
if (!empty($_GET['_remote']))
$REMOTE_REQUEST = TRUE;
+
+
+// set output buffering
+if ($_action != 'get' && $_action != 'viewsource')
+ {
+ // use gzip compression if supported
+ if (function_exists('ob_gzhandler') && !ini_get('zlib.output_compression'))
+ ob_start('ob_gzhandler');
+ else
+ ob_start();
+ }
+
// start session with requested task
rcmail_startup($_task);