[Dovecot] bug in dovecot search
Timo Sirainen
tss at iki.fi
Fri Jul 22 14:47:21 EEST 2005
On Fri, 2005-07-15 at 14:00 +0200, Cor Bosman wrote:
> . UID search ALL FROM "phyllis"
..
> . UID SEARCH CHARSET "US-ASCII" ALL FROM "phyllis"
> Since the CHARSET applies to the search criteria, and not to the header
> that is searched, isnt this supposed to return the same UIDs?
Yes. Dovecot's internal handling is different though. If you don't
specify character set, it compares the strings directly. If you do, it
attempts to do conversions to UTF-8 for both search key and each
existing header.
If you didn't compile with iconv support, or if it didn't support
windows-1251 charset I guess this could have happened. I'll change the
code so that it tries to compare it even if the charset translation
fails, so ASCII comparing at least works correctly. See if it works in
upcoming test79 or CVS.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20050722/a9872a2d/attachment.pgp
More information about the dovecot
mailing list