[Dovecot] imap locking spool?

Timo Sirainen tss at iki.fi
Wed Mar 4 00:09:42 EET 2009


On Tue, 2009-03-03 at 13:54 -0800, Mark Hedges wrote:
> How does IMAP lock the /var/spool/mail/user file?

mbox_read_locks and mbox_write_locks defines it.

> Here's my problem:  I'm writing a script to expire old or
> oversize mail through a series of archive folders.  I don't
> want to take the whole server down to do this, nor does it
> seem like I would have to lock the user out entirely if I
> can manage to emulate the locks correctly.

How about doing it via IMAP? Then you wouldn't need to worry about
locking or anything else.

1 select mailbox
2 search before 01-jun-2006
3 store <those messages> +flags.silent \deleted
4 expunge

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090303/d16c01b9/attachment.bin 


More information about the dovecot mailing list