procmail
[Top] [All Lists]

Re: from addresses w/o real names

2001-01-07 22:55:01
Philip advised Dave,

| If you want to go ahead with it, you could try a recipe like the following:
| 
|       :0 fhw
|       * ^From:[       ]*\/[^  <,]+[   ]*$
|       * MATCH ?? ^^\/[^       ]+
|       | formail -i"From: $MATCH <$MATCH>"
| 
| That attempts to prevent the most egregious cases of shooting yourself
| in the foot by only rewriting the From: header field if it contains
| only a single sequence of non-whitespace characters, none of which are
| open brackets or commas.

I'd feel more comfortable if the left parenthesis were included in that class
(the second bracketed group of the first condition) so as not to change
addresses of this form:

        From: ad(_at_)dr(_dot_)ess(NameGoesHere)

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