procmail
[Top] [All Lists]

Re: procmail and mail file locking

2020-05-17 07:00:29

On Sun, 17 May 2020, at 07:37, Robert Moskowitz wrote:

Does procmail default lock the local delivery mail file as I have been told postfix and other MTAs do?
In case of files, yes.
Just to be sure, you are talking about the mbox mail file.  Your last comment seems to assure me that you mean writing to an mbox file.

Procmail has by default locking support for writing to any file as long as it is (at least) a regular file, that includes mbox and maildir, of course.

Se also https://linux.die.net/man/5/procmailrc
which mentions using lock files.

I am piping the output of a formail command into procmail.  No receipts.

Piping formail also doesn't change the fact that procmail has its default locking when delivering to files. But I did not get your remark about receipts.

I am not using receipts where I see the use of lockfile in the examples.  I have a 'simple' formail command that is then piped into procmail.

My procmailrc(5) does not mention "receipt". Maybe you mean "recipe"? But then, almost everything in procmailrc is a recipe :)

--
-- Andreas


   Nothing in life is to be feared, it is only to be understood.
   Now is the time to understand more, so that we may fear less.

                  --- Glenn T. Seaborg, 1968, quoting Marie Curie; cf.
        https://todayinsci.com/C/Curie_Marie/CurieMarie-Quotations.htm
____________________________________________________________
procmail mailing list -- procmail(_at_)lists(_dot_)rwth-aachen(_dot_)de   
Procmail homepage: http://www.procmail.org/
To unsubscribe send an email to 
procmail-leave(_at_)lists(_dot_)rwth-aachen(_dot_)de
https://lists.rwth-aachen.de/postorius/lists/procmail.lists.rwth-aachen.de

<Prev in Thread] Current Thread [Next in Thread>