[Dovecot] Index abuse
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
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.
--On 26 April 2004 23:24 +0300 Timo Sirainen <tss@iki.fi> wrote:
On Mon, 2004-04-26 at 22:20, Rick Jones wrote:
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.
Thanks, that's great to know.
-- Cheers Rick
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.
participants (3)
-
Rick Jones
-
Skye Poier
-
Timo Sirainen