charset-specific searches, and continuation lines

Eric Abrahamsen eric at ericabrahamsen.net
Thu Sep 4 09:21:50 UTC 2014


Hi there,

I'm looking into improving IMAP search support for the Gnus Emacs mail
client, and trying to add the ability to search non-ascii characters. So
far as I know, I start this invocation with something like:

. UID SEARCH CHARSET UTF-8 TEXT {NNN}

Where NNN is the number of bytes in my search string. Dovecot then
responds with:

+ OK

So... what do I do then? I don't actually know what the next statement
is, to provide the actual search string itself. Googling has proved
unhelpful, as most of the examples online don't actually show this "+
OK" response. Can someone just briefly outline what's meant to happen
next? I've tried including the search string immediately after the
byte-size, separated by various combinations of \n\r, but that always
gives me a "Missing LF after literal size" error.

I'm using the Archlinux dovecot package, which reports version 2.2.13-1.

Thanks!
Eric



More information about the dovecot mailing list