[Dovecot] Search for substring in header?

Michael M Slusarz slusarz at curecanti.org
Mon Oct 15 04:59:50 EEST 2012


Quoting Dave Abrahams <dave at boostpro.com>:

> Hi,
>
> According to the IMAP spec (http://tools.ietf.org/html/rfc2060#page-37),
> if I do a search for "TO isocpp.org" it should find all the messages
> whose To: field contains the string "isocpp.org", but dovecot is
> returning me an empty list.  However, a search for "TO tm at isocpp.org"
> produces a long list of messages.  What am I doing wrong?

First, you referenced the wrong RFC - RFC 2060 has been obsoleted by RFC 3501.

Second, your assumption is correct - TO should do a substring search.   
But this works fine for me (using version 2.1.10).

michael



More information about the dovecot mailing list