procmail
[Top] [All Lists]

Re: Procmail log intelligibility

2002-05-31 06:55:12
On Fri, 31 May 2002 erik(_at_)dd(_dot_)nec(_dot_)com(_dot_)au wrote:

On Thu, May 30, 2002 at 07:24:12AM -0700, Bart Schaefer wrote:

LOGFILE=$TEMPLOGFILE
TRAP="procmail -p DEFAULT=$REALLOGFILE /dev/null < $TEMPLOGFILE"

   Yes! Works like a bought one!

Interesting way to put it.

I neglected to remove the temporary log file.  Something like

TRAP="procmail -p DEFAULT=$REALLOGFILE /dev/null < $TEMPLOGFILE && \
        rm -f $TEMPLOGFILE"

and if, after that, any temp logs are left behind, it means something went
wrong when appending to the real log.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail