procmail
[Top] [All Lists]

Re: using LOG= in recipes, newline character and mailstat

2006-01-06 13:28:06
On Jan 6, 2006, at 9:37 AM, Stephan Peterson wrote:

first of all, i'm new to procmail and am loving it.

Heh.

        LOG = "rc.spamassassin "

Do this.
It looks really bogus, but... It works.

        LOG="rc.spamassassin
"

My favorite tweak to the logfile format, though, is this:

        LOGABSTRACT=no
        TRAP='sed -n '"'"'/^$/'"'"'"{h;s#^#Folder: $LASTFOLDER#;p;g;p;q;};p;"'

That's deep SED-magick-moste-e-vile, but....
The end result is to dump ALL the headers into the logfile.
ALL ... of them.

Aloha mai Nai`a!
-- 
"Please have your Internet License             http://kapu.net/~mjwise/
   and Usenet Registration handy..."



____________________________________________________________
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