procmail
[Top] [All Lists]

Re: Extra information when logging

2003-02-11 09:19:49
Sean advised Cliff,

| If you need an X-Header:
|
| :0
| * \/X-Header: .*
| {
|          LOG="$MATCH$NL"
| }

Now, Sean, you know that wouldn't work.  While I'm fixing it, let's include
the newline in $MATCH in the first place:

 :0
 * ^\/X-Header:.*$
 { LOG="$MATCH" }

although my own answer to Cliff's question would have been

 TRAP='formail -XX-Header:' # apostrophes, not backticks

in the first place so that it would be written to the logfile together with
the logabstract and there would be less risk of interleaving in the logfile
when messages arrive simultaneously.


_______________________________________________
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>