How resilient is Dovecot's indexing mechanism? (seeing as it's been extensively re-vamped I guess this question may have different answers for 0.99 & 1.0). To put it in context, I'm playing with server-side automatic maintenance scripts for things like deleting messages more than x days old from folders a, b, c, etc. (using Maildir layout). So far I'm just zapping files in the cur and new directories and nothing amiss appears to happen from the IMAP client's viewpoint. I just wonder if I'm storing up trouble. Will the index files continue to hold references to non-existent files and get bloated, or do they self-clean? -- Rick Jones -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 722 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20040426/1cf8d6e8/attachment-0003.bin>
On Mon, 2004-04-26 at 22:20, Rick Jones wrote:> To put it in context, I'm playing with server-side automatic > maintenance scripts for things like deleting messages more than x days > old from folders a, b, c, etc. (using Maildir layout). So far I'm just > zapping files in the cur and new directories and nothing amiss appears > to happen from the IMAP client's viewpoint. > > I just wonder if I'm storing up trouble. Will the index files continue > to hold references to non-existent files and get bloated, or do they > self-clean?They'll clean themselves up. I wouldn't call Dovecot maildir- or mbox-compatible if it didn't. That's actually how it internally works now, Dovecot just deletes the mails and then calls mailbox syncing function which updates the indexes. New indexing code does it differently though. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20040426/bf3976da/attachment-0001.bin>
That's great news, as I'm going to be doing server-side message nuking as well :) Also excited to see 1.0-test1 released!! Go Timo! Skye Word on the street is Timo Sirainen said:> On Mon, 2004-04-26 at 22:20, Rick Jones wrote: > > To put it in context, I'm playing with server-side automatic > > maintenance scripts for things like deleting messages more than x days > > old from folders a, b, c, etc. (using Maildir layout). So far I'm just > > zapping files in the cur and new directories and nothing amiss appears > > to happen from the IMAP client's viewpoint. > > > > I just wonder if I'm storing up trouble. Will the index files continue > > to hold references to non-existent files and get bloated, or do they > > self-clean? > > They'll clean themselves up. I wouldn't call Dovecot maildir- or > mbox-compatible if it didn't. > > That's actually how it internally works now, Dovecot just deletes the > mails and then calls mailbox syncing function which updates the indexes. > New indexing code does it differently though. >