procmail
[Top] [All Lists]

Re: Remove string from $MATCH?

2003-02-19 22:16:41
At 16:36 2003-02-19 -0800, Tyler F. Creelan wrote:

:0 : # Match on Sender field
* SENDER ?? ()\/(plug-(devel|jobs)|pm-list)-admin@
* MATCH ?? ()\/[^(_at_)]+
$MATCH

Uhm, something like (untested, possible minour typo/technicalities):

:0
* SENDER ?? ()\/(plug-(devel|jobs)|pm-list)-admin@
{
        :0
        * MATCH ?? ()\/[^(_at_)]+
        {
                MBOX=echo "${MATCH}" | sed -e s/-admin//
        }

        :0A:
        $MBOX
}


---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


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