On Sat, 2007-09-22 at 22:14 -1000, Julian Cowley wrote:
On Sat, 22 Sep 2007, Timo Sirainen wrote:
On Fri, 2007-09-21 at 23:57 -1000, Julian Cowley wrote:
I think I've found the source of a bug which I first saw when running dovecot and pine (or alpine), which I finally tracked down by doing a protocol trace. In the IMAP session, the SEARCH command appears to have a problem with sets of messages and/or the NOT operator.
Thanks, fixed: http://hg.dovecot.org/dovecot-1.0/rev/d144e54f09e6
Thanks. That fixed all of the test cases I had, but now I've found something new when using NOT on overlapping ranges:
Perhaps I should have just dropped the NOT optimizations, but instead I added more..
http://hg.dovecot.org/dovecot-1.0/rev/fa89431f893e http://hg.dovecot.org/dovecot-1.0/rev/92b2bd6b6c2d http://hg.dovecot.org/dovecot-1.0/rev/678626efb942
I've tested this by having a perl script generate thousands of SEARCH commands randomly and verifying that Dovecot's output matches UW-IMAP's output.