procmail
[Top] [All Lists]

Re: Is there a way

2004-07-20 10:19:02
Curtis Maurand asked,

is there a way to get procmail to put its process ID in the logfile.

Exactly where in the logfile? Once at the start of processing each message won't help with overlapping log entries.

Procmail already lists its PID when it enters verbose mode. You can also toss in,


LOG="$$
"

wherever and whenever you like. But the only way I know to guarantee that log entries from different messages won't interleave is to start a fresh logfile for each one, as in

LOGFILE=$HOME/procmaillogs/$HOST.$$

assuming you've created such a directory in advance.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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