[Dovecot] Search for substring in header?

Frerich Raabe raabe at froglogic.com
Tue Oct 16 10:30:26 EEST 2012


Am 10/16/2012 12:20 AM, schrieb Dave Abrahams:
>
> on Mon Oct 15 2012, Michael M Slusarz <slusarz-AT-curecanti.org> wrote:
>
>> 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:
>>>>
>>>> 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.
>
> Sorry, but what does "try the wiki" mean?
> Which indexer are you using, that successfully finds the substring match?

I don't know what Michael had in mind, but I also seemed to recall that 
the 'Squat' plugin used to be the only FTS plugin which suppotred 
substring matches. http://wiki2.dovecot.org/Plugins/FTS/Squat explains:

"The main difference between Squat indexes and the others is that Squat 
provides support for substring searches, while pretty much all other FTS 
indexes support only matching from the beginning of words. By strictly 
reading the IMAP RFC it requires substring matching, so to optimize 
regular TEXT and BODY searches you must use Squat with Dovecot v2.0. 
[..] However, almost all other commonly used IMAP servers no longer care 
about this requirement, so Dovecot v2.1 also no longer makes this 
distinction."

I'm not sure how to read this, but I can imagine (and maybe that's what 
Michael was hinting at) that the Squat plugin for Dovecot >= 2.1 no 
longer supports substring matches as required by the IMAP RFC whereas 
previous versions do.

P.S.: I wish this list would have a Reply-To configured. :-)

-- 
Frerich Raabe - raabe at froglogic.com
www.froglogic.com - Multi-Platform GUI Testing



More information about the dovecot mailing list