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@isocpp.org" produces a long list of messages. What am I doing wrong?
TIA, Dave
-- Dave Abrahams BoostPro Computing Software Development Training http://www.boostpro.com Clang/LLVM/EDG Compilers C++ Boost
Quoting Dave Abrahams <dave@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@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
on Sun Oct 14 2012, Michael M Slusarz <slusarz-AT-curecanti.org> wrote:
Quoting Dave Abrahams <dave@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@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?
-- Dave Abrahams BoostPro Computing Software Development Training http://www.boostpro.com Clang/LLVM/EDG Compilers C++ Boost
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@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@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.
baffled-ly y'rs,
-- Dave Abrahams BoostPro Computing Software Development Training http://www.boostpro.com Clang/LLVM/EDG Compilers C++ Boost
Quoting Dave Abrahams <dave@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@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@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
on Mon Oct 15 2012, Michael M Slusarz <slusarz-AT-curecanti.org> wrote:
Quoting Dave Abrahams <dave@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?
-- Dave Abrahams BoostPro Computing Software Development Training http://www.boostpro.com Clang/LLVM/EDG Compilers C++ Boost
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@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@froglogic.com www.froglogic.com - Multi-Platform GUI Testing
on Tue Oct 16 2012, Frerich Raabe <raabe-AT-froglogic.com> wrote:
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@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.
Well, it worked for me in 2.1.6 and 2.1.9. However, http://wiki2.dovecot.org/Plugins/FTS claims squat is "obsolete" in 2.1.x, my colleague is reporting (to me) crashes with squat during indexing, and Timo just posted that squat "seems to be completely broken for some reason."
-- Dave Abrahams BoostPro Computing Software Development Training http://www.boostpro.com Clang/LLVM/EDG Compilers C++ Boost
participants (3)
-
Dave Abrahams
-
Frerich Raabe
-
Michael M Slusarz