procmail
[Top] [All Lists]

Re: [2.1] Troubles with $MATCH

2003-12-09 10:06:24
On Tue, 9 Dec 2003, Birl wrote:
Sometimes I have trouble wrapping my mind around $MATCH
* ^(To|Cc):.*sbirl\+\/[^+]+(_at_)concept\(_dot_)
.email_alias_$MATCH

MATCH is *everything* after the \/, so in this case, the 'MATCH' on the
address "sbirl+procmail(_at_)concept(_dot_)whatever" using the above rule will 
be:
      "procmail(_at_)concept(_dot_)"

Which means that your delivery line becomes:
(_dot_)email_alias_procmail(_at_)concept(_dot_)

And so it attempts to forward the mail to the domain 'concept.' with
highly unpredictable results. 

Try a two part rule, with the first line testing for '@concept', and the
second, slightly redundant rule creating the MATCH:

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

- Charles


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