Your test examples aren't any good, because your message is in UTF-8 but
you have texts that are claimed to be ISO 8859-1. I will try to answer
what I *think* you intended.
If my presumptions are wrong, then I reserve the right to change my
answers.
On Wed, 18 Apr 2007, Dan Karp wrote:
> server's name and version
UW imapd, version imap-2006 series unless noted otherwise.
> I love M?tley Cr?e !
Presumably, you mean "I love M" 0xf6 "tley Cr" 0xfc "e"
> A001 SEARCH BODY "love"
matches
> A002 SEARCH BODY "LOVE"
matches
> A003 SEARCH CHARSET "iso-8859-1" BODY {4}
> Cr?e
Presumably, you mean "Cr" 0xfc "e"
matches in all versions since imap-4.1
error in imap-4 and earlier (10+ year old US-ASCII only version)
> A004 SEARCH CHARSET "utf-8" BODY {5}
> Cr??e
Presuably, you mean "Cr" 0xc3 0xbc "e"
matches in all versions since imap-4.1
error in imap-4 and earlier (10+ year old US-ASCII only version)
> A005 SEARCH CHARSET "iso-8859-1" BODY {4}
> CR?E
Presumably, you mean "CR" 0xdc "E"
matches in imap-2006 series.
does not match in earlier versions (earlier versions did i;ascii-casemap).
error in imap-4 and earlier (10+ year old US-ASCII only version)
-- Mark --
http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.