Asheesh Laroia
2008-Mar-07 06:57 UTC
[Dovecot] Sorting a folder (by THREAD) takes a long time
My email workflow with Dovecot is that mail gets delivered to INBOX, where I handle it and then move it into a folder called archive. I have alpine set to use the Default sort of "THREAD" of a folder. After moving a (few) mail(s) from INBOX to archive, archive takes a long time (10-50s) to load while alpine tells me: [Sorting "archive" ... ] (I can do the IMAP traces, but I figure alpine's terminology is going to be so similar to IMAP terminology that it should be straightforward enough for Timo to know what I'm talking about.) I don't actually know enough about Dovecot to say for sure what makes this slow, but maybe it's just indexes not being updated? What might be making this slow, and what hope is there for it being fast? (-: It seems like the really nice thing to do would be, after the save, in the background examine the archive folder and update whatever caches need to be updated. The more work that happens while I'm not waiting, the happier I'll be! (Same goes for my mom, and the other less-technical users of Dovecot.) Is this the kind of thing I could write a plugin for...? -- Asheesh. -- It seems to make an auto driver mad if he misses you.
Timo Sirainen
2008-Mar-07 07:24 UTC
[Dovecot] Sorting a folder (by THREAD) takes a long time
On Mar 7, 2008, at 8:57 AM, Asheesh Laroia wrote:> My email workflow with Dovecot is that mail gets delivered to INBOX, > where I handle it and then move it into a folder called archive. > > I have alpine set to use the Default sort of "THREAD" of a folder. > After moving a (few) mail(s) from INBOX to archive, archive takes a > long time (10-50s) to load while alpine tells me: > > [Sorting "archive" ... ]How large is your INBOX? Unless you've disabled index files the threading should go pretty fast even for thousands of messages. But if it really is because of THREAD, you're in luck. I've almost finished thread index implementation and I'm also considering making it available for v1.1 as a plugin. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <dovecot.org/pipermail/dovecot/attachments/20080307/1621aaf3/attachment-0002.bin>
Benjamin R. Haskell
2008-Mar-07 07:32 UTC
[Dovecot] Sorting a folder (by THREAD) takes a long time
On Thu, 6 Mar 2008, Asheesh Laroia wrote:> My email workflow with Dovecot is that mail gets delivered to INBOX, > where I handle it and then move it into a folder called archive. > > I have alpine set to use the Default sort of "THREAD" of a folder. > After moving a (few) mail(s) from INBOX to archive, archive takes a long > time (10-50s) to load while alpine tells me: > > [Sorting "archive" ... ] > > (I can do the IMAP traces, but I figure alpine's terminology is going to > be so similar to IMAP terminology that it should be straightforward > enough for Timo to know what I'm talking about.)I'd do the traces if I were you. Maybe it's something to do with "Thread Sorts By Arrival" or similar Alpine threading quirks. There was also traffic a couple months ago about threading scaling non-linearly in Alpine depending on that setting. I assume you're running a recent snapshot, but I don't recall whether that issue was resolved. Best, Ben
Hi, I'm using delivery like Postifx->Amavis->Dovecot LDA Is there a possibility to deliver mail marked as spam (Subject, header) to Junk folder? /Toms
Charles Marcus
2008-Mar-07 16:17 UTC
[Dovecot] Sorting a folder (by THREAD) takes a long time
On 3/7/2008, Timo Sirainen (tss at iki.fi) wrote:> But if it really is because of THREAD, you're in luck. I've almost > finished thread index implementation and I'm also considering making > it available for v1.1 as a plugin.Curious... did you mean 1.0? I'm trying to figure out what else you would be developing for... -- Best regards, Charles