On Thu, 16 May 2002, Jack Gao wrote:
> I got it from procmail's example.

The lock file name must be the mailbox file name followed by ".lock".
Hence, the lock file name must be $HOME/mbox.lock if the mailbox file name
is $HOME/mbox.

In the configuration that you had, procmail was not locking against imapd
or, for that matter, against any other program reading traditional UNIX
format mailbox files.  What you experienced was exactly what would be
expected.

Fixing the lock file definition should remedy the problem that you are
experiencing.  However, if you are not absolutely certain that you
understand all details about mailbox file locking, I strongly recommend
that you deliver to the spool directory (and leave procmail in default
configuration) and let imapd move the messages to the mbox file.

The defaults, although not particularly high-performing, were designed to
be "safe", especially for systems on which the system manager is not an
expert.  An expert can certainly set up a higher-performing configuration,
but doing so is very dangerous and should be left to experts.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.


Reply via email to