#140 Search fails with Unknown Charset (case problem)

I18n
closed-works-for-me
nobody
Folders (317)
1
2000-12-27
2000-12-17
Bron Gondwana
No

Using SM 1.0pre1 on a Debian system with latest Apache (1.3.14) and PHP4 (4.0.4RC3). No LDAP support.

I select 'Search' from the top bar while in INBOX, and search for 'matt' in 'body' or 'INBOX'.

The response is:

ERROR : Could not complete request.
Reason Given: SEARCH failed: [BADCHARSET (US-ASCII UTF-8 UTF-7
ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6
ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13
ISO-8859-14 ISO-8859-15 KOI8-R KOI8-U KOI8-RU TIS-620 VISCII GB2312
CN-GB ISO-2022-CN CN-GB-12345 BIG5 CN-BIG5 ISO-2022-JP EUC-JP
SHIFT_JIS SHIFT-JIS ISO-2022-JP-1 ISO-2022-JP-2 ISO-2022-KR EUC-KR)]
Unknown charset: iso-8859-1

Added patch as follows to '$BASE/functions/imap_search.php:
25c25
< $ss = "a001 SEARCH CHARSET ".strtoupper($languages[$squirrelmail_language]["CHARSET"])." ALL $search_where \"$search_what\"\r\n";
---
> $ss = "a001 SEARCH CHARSET ".$languages[$squirrelmail_language]["CHARSET"]." ALL $search_where \"$search_what\"\r\n";

Now I get:

ERROR : Could not complete request.
Reason Given: SEARCH failed: [BADCHARSET (US-ASCII UTF-8 UTF-7
ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6
ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13
ISO-8859-14 ISO-8859-15 KOI8-R KOI8-U KOI8-RU TIS-620 VISCII GB2312
CN-GB ISO-2022-CN CN-GB-12345 BIG5 CN-BIG5 ISO-2022-JP EUC-JP
SHIFT_JIS SHIFT-JIS ISO-2022-JP-1 ISO-2022-JP-2 ISO-2022-KR EUC-KR)]
Unknown charset: ISO-8859-1

Discussion

  • Lewis Bergman
    Lewis Bergman
    2000-12-27

    Please provide more detail about your IMAP server, operating
    system, Version of SquirrelMail, and the circumstances which
    produced the bug.

    Since we could not reproduce this problem, providing the same
    information will not help. Please be as specific as possible.
    Some problems may require taht we make a coding effort and then
    you try the new version to see the results. Thanks for your help.

     
  • Lewis Bergman
    Lewis Bergman
    2000-12-27

    • priority: 5 --> 1
    • status: open --> closed-works-for-me
     
  • Logged In: YES
    user_id=120828

    I have encountered the same problem.
    Using squirrelmail-1.2.4, on linux debian potato.
    apache-ssl 1.3.9.13
    php4 4.0.3pl1
    UW IMAP 4.7 for debian (4.7c)

    This bug happens whenever I do a search. Go to search, eneter a word/mailbox,
    click search. In my case the error message at the bottom of the window is
    the same, except that ISO is in lower case:
    Unknown charset: iso-8859-1

    thanks!