On 2004-07-14 09:51, Tomas Kuliavas wrote:
That's probably my fault; it might have been converted to CRLF when I scp'ed it to my Windows box which I use for e-mail. You can also find the patch at http://www.bentzon.net/uidpatch:squirrelmail files usually don't include CR symbols. Patch is done against modified version of sm or you have extracted SquirrelMail files with utility that converts unix line endings to dos line endings.
#wget http://www.bentzon.net/uidpatch
That should leave the line endings intact, right?
The problem is that when SquirrelMail reverts back to another character set, it doesn't send a UID:
Have you tried disabling charset search in SquirrelMail config.
conf.pl 4. General Options 12. Allow server charset search : false
you can put any value in SquirrelMail default charset option. SquirrelMail scripts won't allow misconfiguration and revert to charset used by translation.
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")]
C: A050 SEARCH CHARSET "US-ASCII" ALL SUBJECT {8}
^^^^
S: + ok, send 8 bytes of data
C: bincimap
S: * SEARCH 507 512 515 530 532 533 673 734 736 737 738 739 766 768 830 831 862 863 864 866 867 925 926 957
S: A050 OK SEARCH completed
C: A051 UID FETCH 507,512,515,530,532:533,673,734,736:739,766,768,830:831,862:864,866:867,925:926,957 (FLAGS UID RFC822.SIZE BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject X-Priority Content-Type)])
But it uses a UID FETCH to get the data.
Therefore, the IMAP server (at least Binc) returns a search result unrelated to the one expected by SquirrelMail.
I got it to work by including $uid_support as the last argument in line #83 in functions/imap_search.php. As I said earlier, I am almost clueless when it comes to the SquirrelMail source, so if anyone here can confirm this, please do so. It seems to work fine for me.
Gotta run again...!
Anders
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users