procmail
[Top] [All Lists]

Re: Logging the To address

2004-02-06 11:47:30
I'm trying to find a way to log the "to" address in my procmail
log.. can't seem to find any reference to it anywhere on the net...
is this possible without using the ever-an-overkill VERBOSE?

:0
* ^\/To:.+
{ LOG="$MATCH
" }

        Thanks. Works great.

I ended up using this so that I could refer to it in all of my various logging lines:

:0
* ^\/To:.+
{
        TOADDRESS=$MATCH
}


For example:

:0 B
* ^ *Content-Disposition: attachment;
* name=".*\.(pif|scr|bat|cmd|xex|dat)"
{
        LOG="$NL pif, scr, bat, cmd, xex, dat file$NL $TOADDRESS $NL"

        :0:
        pif-scr-bat-cmd-xex-dat-filename.txt
}


I always thought it odd that it logged the subject and the from address, but not the to address... Oh well. Not an issue anymore.

Thank you.

--

Phil Hilton


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