procmail
[Top] [All Lists]

Re: /var full, using duplicate removing

2001-12-04 08:18:24
On Mon, 3 Dec 2001, David W. Tamkin wrote:

It looks funny to use a local lockfile on the save to $DEFAULT while a
regional lockfile is in effect, but if not all messages go through
this part of the rcfile and some are written to $DEFAULT without
securing msgid.lock, then what Bart wrote is the right thing to do.

It's also the right thing to do so that message delivery is sync'd with
message reading by the user agent.  Otherwise the MUA might read to EOF
on a partially-written message.  This would be particularly bad in the
case of, say, Pine with the "mbox" driver, which grabs all the messages
from $DEFAULT, copies them to the ~/mbox file, and then zeros $DEFAULT.

Locking $DEFAULT is *always* the right thing to do.  In fact, locking any
multi-message flat file that is directly accessed by an MUA or by a server
such as imapd (UW imapd has the "mbox" driver too!) is always the right
thing to do.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail