procmail
[Top] [All Lists]

Re: Extra information when logging

2003-02-11 10:03:27
On Tue, Feb 11, 2003 at 10:03:46AM -0600, David W. Tamkin wrote:
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.

That is exactly what I want.
Thanks :)

-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

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