procmail
[Top] [All Lists]

procmail and mail file locking

2020-05-14 21:30:42
Does procmail default lock the local delivery mail file as I have been told postfix and other MTAs do?

If I run

procmail -f $MAILTO

where procmail is getting the mail file from STDIN.

Or do I add something like the following to my script:

exec 100>/var/spool/mail$USER.lock || exit 1
flock -w 120 100 || exit 1

And do I also need -d $MAILTO on the above procmail call?

thanks

____________________________________________________________
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>