4 Mar
2009
4 Mar
'09
12:09 a.m.
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