From: thomppj Date: Mon, 24 Dec 2001 06:45:37 +0000 (+0000) Subject: Fixing several small bugs... X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=0f5292858e4e085fd16d5d86431597d61ce8684d Fixing several small bugs... ---------------------------------------------------------------------- git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1905 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/config/conf.pl b/config/conf.pl index 7ef30647..f61e5b50 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -1981,13 +1981,13 @@ sub set_defaults { $continue = 1; } elsif ($server eq "courier") { - $default_folder_prefix = "mail/"; + $default_folder_prefix = "INBOX."; $trash_folder = "Trash"; $sent_folder = "Sent"; $draft_folder = "Drafts"; - $show_prefix_option = true; + $show_prefix_option = false; $default_sub_of_inbox = false; - $show_contain_subfolders_option = true; + $show_contain_subfolders_option = false; $imap_server_type = "courier"; $disp_default_folder_prefix = $default_folder_prefix; diff --git a/functions/mime.php b/functions/mime.php index aee86e84..9b65e9c9 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -790,7 +790,7 @@ class msg_header { // Encode only if the string contains 8-bit characters or =? $j = strlen( $string ); - $l = FALSE; // Must be encoded ? + $l = strstr($string, '=?'); // Must be encoded ? $ret = ''; for( $i=0; $i < $j; ++$i) { switch( $string{$i} ) { @@ -798,7 +798,6 @@ class msg_header { $ret .= '=3D'; break; case '?': - $l = TRUE; $ret .= '=3F'; break; case '_': diff --git a/src/options_display.php b/src/options_display.php index 5fd5c5ef..1ddaeb0c 100644 --- a/src/options_display.php +++ b/src/options_display.php @@ -18,7 +18,7 @@ define('SMOPT_GRP_MESSAGE', 2); /* Define the optpage load function for the display options page. */ function load_optpage_data_display() { - global $theme, $languages, $js_autodetect_results; + global $theme, $language, $languages, $js_autodetect_results; /* Build a simple array into which we will build options. */ $optgrps = array(); @@ -48,6 +48,7 @@ function load_optpage_data_display() { 'save' => 'save_option_theme' ); + $language = (!isset($language) || ($language == '') ? 'en' : $language); $language_values = array(); foreach ($languages as $lang_key => $lang_attributes) { if (isset($lang_attributes['NAME'])) {