Hi all, $ sudo dovecot --version 1.2.beta3 I just started using Dovecot a few weeks ago, and my client is also using the X-REFERENCES2 thread algorithm. The client is misbehaving when trying to list messages in my INBOX, but only when a threaded message exists. I have tracked it down to the thread index that Dovecot is returning, but the problem is only extant when using the X-REFERENCES2 thread algorithm. Here is a snippet of transcript from imap client that comes with Dovecot: $ export MAIL=maildir:~/Maildir:INBOX=~/Maildir/INBOX $ /usr/lib/dovecot/imap <snip> 1 SELECT "INBOX" <snip> 2 THREAD X-REFERENCES2 UTF-8 ALL * THREAD (0)(2)(1 3)(4) 2 OK Thread completed. There are, in fact, only 4 messages in my INBOX, and the reference to (0) seems spurious. When I do the same test, but passing REFERENCES instead of X-REFERENCES2 Dovecot returns an index which I believe to be correct: <snip> 2 THREAD REFERENCES UTF-8 ALL * THREAD (1 3)(2)(4) 2 OK Thread completed. <snip> Is this the normal and expected behavior of X-REFERENCES2 that the client just needs to take into account, or is the reference to thread index (0) an error? Thanks! Nathan
On Sat, 2009-03-21 at 15:55 +0000, Nathan Kinkade wrote:> $ export MAIL=maildir:~/Maildir:INBOX=~/Maildir/INBOX > $ /usr/lib/dovecot/imap > <snip> > 1 SELECT "INBOX" > <snip> > 2 THREAD X-REFERENCES2 UTF-8 ALL > * THREAD (0)(2)(1 3)(4) > 2 OK Thread completed.Could you send me the dovecot.index* files? Would make it easier for me to reproduce this bug. dovecot.index.cache file is the only one that might contain something sensitive.> Is this the normal and expected behavior of X-REFERENCES2 that the client > just needs to take into account, or is the reference to thread index (0) an > error?It's a bug. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090324/2ccfa684/attachment-0002.bin>
On Sat, 2009-03-21 at 15:55 +0000, Nathan Kinkade wrote:> 2 THREAD X-REFERENCES2 UTF-8 ALL > * THREAD (0)(2)(1 3)(4)This should fix it: http://hg.dovecot.org/dovecot-1.2/rev/bf16646ec312 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090402/916bacec/attachment-0002.bin>
On Thu, 02 Apr 2009 15:28:29 -0400, Timo Sirainen <tss at iki.fi> wrote:> On Sat, 2009-03-21 at 15:55 +0000, Nathan Kinkade wrote: >> 2 THREAD X-REFERENCES2 UTF-8 ALL >> * THREAD (0)(2)(1 3)(4) > > This should fix it: http://hg.dovecot.org/dovecot-1.2/rev/bf16646ec312I can confirm that that seems to have fixed it. Thanks! Nathan
On Thu, 16 Apr 2009 22:22:16 -0400, Timo Sirainen <tss at iki.fi> wrote:> On Sat, 2009-04-04 at 20:39 +0000, Nathan Kinkade wrote: >> On Sat, 4 Apr 2009 13:13:24 -0400, Timo Sirainen <tss at iki.fi> wrote: >> > On Apr 4, 2009, at 11:58 AM, Nathan Kinkade wrote: >> > >> >> 2 THREAD X-REFERENCES2 UTF-8 ALL >> >> * THREAD (0)(1 (2)(3)) >> >> 2 OK Thread completed. > > That was an easy bug to fix. The previous fix was written a bit wrong: > http://hg.dovecot.org/dovecot-1.2/rev/a2a28c52e951I've been using this fix for a few days now and it seems to be working fine. Thanks! Nathan