procmail
[Top] [All Lists]

Re: Procmail Logging -- Making it start new line..

2002-02-14 11:44:53
Scott Palmer wrote:

I have a pretty extensive .procmailrc, I like to log based on what filter
snagged it. My log line looks like this example:

LOG=" -- Logging -- RULE=CRON FAILURE, MSGID=$MESSAGE_ID .... "

One of my fav tricks is the following, at the start of the main recipe:

        FROMADR=`formail -x From:`
        LOG="
        From:$FROMADR
        "

And therein lies the secret. Move the " to the next line, and that's it!

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

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

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