procmail
[Top] [All Lists]

Re: Regexp help

2002-04-26 12:52:52
Mmmm, sort of.

That's a polite 'No' isn't it :-)

What I'm really after is to pull any right-hand value (after the '@')
in that first recipient and assign it to the variable $DOMAIN.

OK - then something more like:

    RECIP=$2

    :0
    * RECIP ?? @\/.*
    { DOMAIN=$MATCH }

might do the trick.  That assumes that you want to grab absolutely
everything after the '@' - which it sounds like you do.

This isn't a delivering recipe, so further recipes will be processed
after this, and $DOMAIN should contain the value I think you want.

M
-- 
Martin McCarthy                 /</    http://procmail.non-prophet.org
    `Procmail Companion'        \>\
     Addison Wesley             /</                  PGP key available
_______________________________________________
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>