next up previous contents
Next: mailbox_display.php Up: 目錄 functions Previous: imap_messages.php   Contents

imap_search.php

  1. 更改郵件搜尋編碼固定為 zh_TW,當用戶使用英文界面,也可以進行中文郵件搜尋。
    [root@mail squirrelmail-1.4.8]# diff -wuN ./functions/imap_search.php /var/www/squirrelmail/functions/imap_search.php
    --- ./functions/imap_search.php	2006-02-04 06:27:47.000000000 +0800
    +++ /var/www/squirrelmail/functions/imap_search.php	2012-05-16 09:44:32.000000000 +0800
    @@ -71,7 +71,7 @@
         if ($allow_charset_search && isset($languages[$squirrelmail_language]['CHARSET']) &&
             $languages[$squirrelmail_language]['CHARSET']) {
             $ss = "SEARCH CHARSET "
    -            . strtoupper($languages[$squirrelmail_language]['CHARSET'])
    +            . strtoupper($languages['zh_TW']['CHARSET']) //dywang
                 . " ALL $search_string";
         } else {
             $ss = "SEARCH ALL $search_string";
    



2016-03-11