procmail
[Top] [All Lists]

Re: bad message id's

1998-03-25 05:53:24
|Thu 98-03-19 Philip Guenther <guenther(_at_)gac(_dot_)edu> list.procmail
| So, that line is it for matching commentless message-ids.  To make it into a
| condition and break it up into semi-readable chunks:
| 
| :0
| * ! ^Message-Id:[     ]*<[    ]*("([^"\]|\\.)*"|[-!#-'*+/-9=?A-Z^-~]+)\
|       ([      ]*\.[   ]*("([^"\]|\\.)*"|[-!#-'*+/-9=?A-Z^-~]+))*\
|       [       ]*(_at_)[    ]*\
|       (\[[    ]*([^][\]|\\.)*[        ]*\]|\
|          [-!#-'*+/-9=?A-Z^-~]+([      ]*\.[   ]*[-!#-'*+/-9=?A-Z^-~]+)*)\
|       [       ]*>
| 
| Hmm, maybe I'll start logging ids that match that condition.

Oh my,  Phil, would you please reformat that to more structural form,
so that variables are used instead of pure regexps:

    regexp1 = ...
    regexp2 = ...

    *$ !^Message-Id:$regexp1$regexp2$regexp2

Then I'll ad this to pm-tips.txt page

jari

<Prev in Thread] Current Thread [Next in Thread>