procmail
[Top] [All Lists]

Re: Logging TO field

2003-07-24 16:00:37
On Thursday, Jul 24, 2003, at 11:44 Canada/Mountain, Birl wrote:
I was just asked this question by a co-worker, but I didnt know the
answer.

Q: "Is it possible to log the TO field?"

:0
* ^Subject:(.*\<)?\/[^  ].*
{ SUBJECT=$MATCH }

:0
* ^To:(.*\<)?\/[^  ].*
{ TO=$MATCH }

:0
* From:(.*\<)?\/[a-z0-9=+_-]+@
{ FROM=$MATCH }

LOGFILE=$HOME/.sub-to-from.csv
LOG=\"$SUBJECT\",
LOG=\"$TO\",
LOG=\"$FROM\"
LOGFILE=$MYLOGFILE

is what I use


--
Like the moment when the brakes lock/And you slide towards the big truck/You stretch the frozen moments with your fear


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