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>