My guess is the code will pretty much work with most european encodings. us-ascii is just the absolute minimum
a imap server should support, other charsets may well have gone untested until now. What charset are you using?
Afaik, the code uses only 1-byte char representations. No wchar_t in sight. So chances are pretty slim the
code will even work at all with unicode. Seems like a worthy implementation goal.
Greg Unrein wrote:
Hi,
I've been using imapd and I've noticed something that I'm curious about.
It seems that the imap search function only works for us-ascii character
sets. Is there some reason for this limitation? It is hardcoded into the
imap server. This limitation exists in both 1.2 and 2.0. The code in
question is in 'imapcommands.c' in the _ic_search function. I've
included the code below for easy reference.
Thanks,
Greg
<snip from imapcommands.c>
if (strcasecmp(args[0], "charset") == 0) {
/* charset specified */
if (!args[1]) {
fprintf(ci->tx, "%s BAD invalid argument list\r\n",
tag);
return 1;
}
if (strcasecmp(args[1], "us-ascii") != 0) {
fprintf(ci->tx,
"%s NO specified charset is not supported\r\n",
tag);
return 0;
}
only_ascii = 1;
idx = 2;
}
</snip>
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail
--
________________________________________________________________
Paul Stevens mailto:[EMAIL PROTECTED]
NET FACILITIES GROUP PGP: finger [EMAIL PROTECTED]
The Netherlands________________________________http://www.nfg.nl