procmail
[Top] [All Lists]

Re: Determining a message's size in Procmail

2006-12-12 07:49:03
=- Michael J Wise wrote on Mon 11.Dec'06 at 10:50:58 -1000 -=

Given that I still have no idea what your TRAP does, ...
                                         ^^^^
I know TRAP in general, just not yours.

My TRAP copies the entire header, complete with anything added
by the anti-spam system, to the log file, and appends a line
saying which folder the mail was delivered to.

LOGFOLDER=...

:0hc
{
        :0h:
        $LOGFOLDER
        :0h:$LOGFOLDER
        | printf "\n%s\n\n" $LASTFOLDER >> $LOGFOLDER
}

Because I'm not sure that the logfile can't be corrupted by
concurrent writes despite printing just a single line: there is
always a race condition.

-- 
© Rado S. -- You must provide YOUR effort for your goal!
Even if it seems insignificant, in fact EVERY effort counts
for a shared task, at least to show your deserving attitude.

____________________________________________________________
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