procmail
[Top] [All Lists]

Regexp help

2002-04-26 12:06:28
I'm fairly new to procmail (beyond simple folder sorting, that is) and I'm
having trouble grasping some of the regexp concepts; rather, not the
regexps themselves but how procmail handles them.

What I'm trying to do is set up a domain-wide filter (called with -m as a
postfix transport).  I have postfix (as arg $2) passing a list of
recipients from the envelope.  I need to take the first recipient from
that arg and parse the domain out of the address (unfortunatly postfix
doesn't deliver that variable in any way to a piped transport).

I can see from all the FAQ's, etc. how to go about parsing from a header
and doing an extraction but I can't see how to do this from an existing
variable.  Can anyone give me a pointer?


TIA,
--
Jim Raney

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