On 2004-07-12 08:03, Andreas Aardal Hanssen wrote:

On Fri, 9 Jul 2004, RYAN vAN GINNEKEN wrote:


This is a repost of an archived message as i am having the same problems
and just wondered if anyone came up with a solution. As setting
squirrel mail to US-ASCII is not recommended and does not seem to solve
things.



Here's something you can post to the Squirrelmail list. A protocol dump between Binc IMAP and Squirrelmail 1.4.1. Short version: A bug in Squirrelmail.

C: A049 UID SEARCH CHARSET ISO-8859-1 ALL SUBJECT {8}
S: + ok, send 8 bytes of data.
C: bincimap
S: A049 NO SEARCH failed: [BADCHARSET ("US-ASCII")]

This means that Binc doesn't support other character sets than US-ASCII.
Now, Squirrelmail actually does the correct thing, it reissues the search
using the US-ASCII charset:

C: A050 SEARCH CHARSET "US-ASCII" ALL SUBJECT {8}
      ^^^

Now, I don't presume to know anything about the SquirrelMail source, but after a quick glance I got it to work by changing line 82 and 83 in the file functions/imap_search.php (SM version 1.4.3a) from

$readin = sqimap_run_command ($imapConnection, $ss, true,
   $result, $message);

to

$readin = sqimap_run_command($imapConnection, $ss, true
   $result, $message, $uid_support);
                      ^^^^^^^^^^^^

Reissuing the search in SquirrelMail yields the right result.

Anders

Reply via email to