procmail
[Top] [All Lists]

Re: Logging to syslog? and/or with message ids?

2002-04-03 12:58:47
Jenny asked,

| Also, I noticed that the procmail log doesn't include the originating
| message IDs.  Is there a way to get it to do this?

Normally, I'd answer,

 TRAP=`formail -XMessage-Id:`

but I think you'd be better off having the ID logged before procmail did
anything else rather than when it was finished, so instead, at the top of the
rcfile

 LOGFILE=wherever

 :0
 * ^\/Message-Id:.+
 { LOG="$MATCH
" }
 :0Efwh
 | formail -a Message-Id:
 :0a
 * ^\/Message-Id:.*
 { LOG="$MATCH generated by procmail
" }



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