procmail
[Top] [All Lists]

Troubles with $MATCH

2003-12-09 08:40:59
Sometimes I have trouble wrapping my mind around $MATCH

From the 2 recipes below, everything commented out is what I experimented
with.

Using data such as   procmail(_at_)concept(_dot_)temple(_dot_)edu  or
sbirl+procmail(_at_)concept(_dot_)temple(_dot_)edu   and expecting $MATCH to 
return
'procmail'

#----------------------------------------------------------------------
VERBOSE=ON
LOGABSTRACT=ALL

# catch-all for email aliases
:0
#* ^(To|Cc):.*\/+(_at_)concept\(_dot_)
* ^(To|Cc):.*\/[^(_at_)]+@concept\.
{
        LOG="               Reached catch-all for email aliases
"
        :0:
        .email_alias_$MATCH
}


:0:
#* ^(To|Cc):.*sbirl\+\/[^(_at_)]@concept\.
#* ^(To|Cc):.*sbirl\+\/+(_at_)concept\(_dot_)
* ^(To|Cc):.*sbirl\+\/[^+]+(_at_)concept\(_dot_)
.email_alias_$MATCH

LOGABSTRACT=OFF
VERBOSE=OFF
#----------------------------------------------------------------------



Problem is simple, $MATCH turns up empty.

I know that \/ catches everything to the right of the expression.
Ive looked at other recipes I have that use $MATCH and Ive looked at the
archives

Like this one works.

:0:
* ^Mailing-List:.*list \/[^(_at_)]+
$MATCH


So what am I doing wrong?



Thanks
Birl

Archives   http://www.xray.mpe.mpg.de/mailing-lists/procmail/

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