procmail
[Top] [All Lists]

re: Recipient delimiter

2001-02-25 10:01:12
Nils asked,

| The exact recipient is shown in the Delivered-To header in my MTA, so I
| figured this should work:

| * 
^Delivered-To:(_dot_)*user+extra-info-here(_at_)mybox(_dot_)example(_dot_)com(_dot_)*

As Timothy has already pointed out, the trailing ".*" is of no benefit (unless
it's to the right of \/) and just slows procmail down, and the periods should
be escaped.

But the problem is that you aren't escaping the plus sign.  A plus sign is
magic by default; it means "one or more of the preceding," so your r+ matches
r, rr, rrr, rrrr, or so forth but not an r followed by a literal plus sign.

So short of any other details, I'll suggest this:

 * 
^Delivered-To:(_dot_)*user\+extra-info-here(_at_)mybox\(_dot_)example\(_dot_)com

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