[Dovecot] Search for substring in header?

Michael M Slusarz slusarz at curecanti.org
Mon Oct 15 22:00:11 EEST 2012


Quoting Dave Abrahams <dave at boostpro.com>:

> on Mon Oct 15 2012, Dave Abrahams <dave-AT-boostpro.com> wrote:
>
>> on Sun Oct 14 2012, Michael M Slusarz <slusarz-AT-curecanti.org> wrote:
>>
>>> 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.
>>
>> Thanks for pointing me to the right one.
>>
>>> Second, your assumption is correct - TO should do a substring search.
>>> But this works fine for me (using version 2.1.10).
>>
>> Using 2.1.6 and 2.1.9 built --with-clucene --with-libstemmer, I get the
>> same empty result with either of these two commands:
>>
>>   UID SEARCH TO isocpp.org
>>
>>   UID SEARCH TO "isocpp.org"
>>
>> Am I formatting the command wrongly?
>
> Incidentally, if I turn of fts_lucene and turn on fts_squat, I get the
> same result.

Lucene for sure does not support subtext searching.  Squat used to...  
but IIRC things may have changed for v2.1.  Try the wiki.

michael




More information about the dovecot mailing list