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