procmail
[Top] [All Lists]

Re: retrieve a collective-box and distribute to the users

2001-08-24 02:01:18
I wrote as an aside to comments re: difficulty routing mail by headers:

| [...] Also, if it were me, I'd make it
| ^Received:.*\<for[    ]+<?\/[^@ ]+(_at_)domain\(_dot_)de, but I tend towards 
| overly anal caution. [...]

Apparently I wasn't anal enough, and forgot that some special effort is
needed for wrapped headers. Borrowing from a past contribution of
Philip's I believe, this appears to work with 0,1, or 2 wrapped lines:

wsplus='[       ]+'    # space and tab
wws='[  ]*($[   ]+)*'  # ditto

* $ ^Received:.*${wws}${wws}${wsplus}for${wsplus}<\/[^@ ]+(_at_)domain\(_dot_)de

Sorry for the goof.

-- 
                   /"\
Don Hammond        \ /     ASCII Ribbon Campaign
Raleigh, NC US      X        Against HTML Mail,
                   / \      and News Too

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail