On 4-Feb-2010, at 02:49, frantisek holop wrote:
austria(_at_)mybrand1(_dot_)com -> mybrand1-austria
germany(_at_)mybrand1(_dot_)com -> mybrand1-germany
germany(_at_)mybrand2(_dot_)com -> mybrand2-germany
as far as i can tell from the man pages, MATCH is not
too flexible for this….
You have two things to match, so you need two recipes to do that.
MYFROM=austria(_at_)mybrand1(_dot_)com
:0
* MYFROM ?? ()\/[^(_at_)]+
{ COUNTRY=$MATCH }
:0
* MYFROM ?? [^(_at_)]+@\/[^\.]+
{ BRAND = $MATCH }
COUNTY=austria
BRAND=mybrand1
--
"Kill yourself and roll a rogue. We'll wait"
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail