Toen wij S.A. Birl kietelden, kwam er dit uit:
After much typing and sandbox testing I found the code
:0
* ! ^(To|Cc):.*sbirl@
* ^(To|Cc):.*<+\/[^(_at_)]+
{
LOG=" ---> Reached catch-all for email aliases
(username). Matched \"$MATCH\"${NL}"
:0:
+$MATCH
}
OK, that wil work 98% of the time.
The "! ^(To|Cc):.*sbirl@" will also match "To: anythingsbirl@".
Check procmail's TO and TO_ macros.
I tested it against
"First Last" <Joe(_dot_)Schmoe(_at_)concept(_dot_)temple(_dot_)edu>
<Joe(_dot_)Schmoe(_at_)concept(_dot_)temple(_dot_)edu>
and received the results I was expecting:
+Joe.Schmoe
More tests:
To: Joe(_dot_)Schmoe(_at_)example(_dot_)com
To: "Joe(_dot_)Schmoe(_at_)example(_dot_)com" pete(_at_)example(_dot_)com
To: "<Joe(_dot_)Schmoe(_at_)example(_dot_)com>" pete(_at_)example(_dot_)com
To: "Joe(_dot_)Schmoe(_at_)example(_dot_)com" <pete(_at_)example(_dot_)com>
To: Joe(_dot_)Schmoe(_at_)example(_dot_)com <pete(_at_)example(_dot_)com>
To: "<Joe(_dot_)Schmoe(_at_)example(_dot_)com>" <pete(_at_)example(_dot_)com>
To: sbirl+special(_at_)example(_dot_)com
To: sbirl(special)@example.com
etc.
See also rfc2822, with example addresses like:
Pete(A wonderful \) chap) <pete(his account)@silly.test(his host)>
--
Grtz, Ruud
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail