From: stekkel Date: Thu, 22 Apr 2004 18:14:25 +0000 (+0000) Subject: $enable_server_sort => $disable_server_sort. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=fdd218455d220c7a98a9ce86716d3008eb46e721 $enable_server_sort => $disable_server_sort. Default we enable server sort and disable it in SquirrelMail if the capability string does not contain the SORT extension. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7221 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/config/conf.pl b/config/conf.pl index 03f9c0ea..e7d998a9 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -286,7 +286,7 @@ $provider_name = '' if ( !$provider_name ); $edit_identity = 'true' if ( !$edit_identity ); $edit_name = 'true' if ( !$edit_name ); $allow_thread_sort = 'false' if ( !$allow_thread_sort ); -$allow_server_sort = 'false' if ( !$allow_server_sort ); +$disable_server_sort = 'false' if ( !$disable_server_sort ); $no_list_for_subscribe = 'false' if ( !$no_list_for_subscribe ); $allow_charset_search = 'true' if ( !$allow_charset_search ); $prefs_user_field = 'user' if ( !$prefs_user_field ); @@ -474,7 +474,7 @@ while ( ( $command ne "q" ) && ( $command ne "Q" ) ) { print "8. Allow use of receipts : $WHT$default_use_mdn$NRM\n"; print "9. Allow editing of identity : $WHT$edit_identity$NRM/$WHT$edit_name$NRM\n"; print "10. Allow server thread sort : $WHT$allow_thread_sort$NRM\n"; - print "11. Allow server-side sorting : $WHT$allow_server_sort$NRM\n"; + print "11. Disable server-side sorting : $WHT$disable_server_sort$NRM\n"; print "12. Allow server charset search : $WHT$allow_charset_search$NRM\n"; print "13. PHP session name : $WHT$session_name$NRM\n"; print "\n"; @@ -2104,19 +2104,19 @@ sub command313 { print "Your IMAP server must support the SORT command for this to work\n"; print "\n"; - if ( lc($allow_server_sort) eq 'true' ) { + if ( lc($disable_server_sort) eq 'true' ) { $default_value = "y"; } else { $default_value = "n"; } - print "Allow server-side sorting? (y/n) [$WHT$default_value$NRM]: $WHT"; - $allow_server_sort = ; - if ( ( $allow_server_sort =~ /^y\n/i ) || ( ( $allow_server_sort =~ /^\n/ ) && ( $default_value eq "y" ) ) ) { - $allow_server_sort = 'true'; + print "Disable server-side sorting? (y/n) [$WHT$default_value$NRM]: $WHT"; + $disable_server_sort = ; + if ( ( $disable_server_sort =~ /^y\n/i ) || ( ( $disable_server_sort =~ /^\n/ ) && ( $default_value eq "y" ) ) ) { + $disable_server_sort = 'true'; } else { - $allow_server_sort = 'false'; + $disable_server_sort = 'false'; } - return $allow_server_sort; + return $disable_server_sort; } sub command314 { @@ -3118,7 +3118,7 @@ sub save_data { # boolean print CF "\$allow_thread_sort = $allow_thread_sort;\n"; # boolean - print CF "\$allow_server_sort = $allow_server_sort;\n"; + print CF "\$disable_server_sort = $disable_server_sort;\n"; # boolean print CF "\$allow_charset_search = $allow_charset_search;\n"; print CF "\n";