Dallman Ross:
way of catching an
empty or blank or just-angle-brackets header.
# brackets contain caret, space, tab, angles
* ! ^From:.*[^ <>]
Yes, that is nice.
In natural language:
1. check if there is a From: header field that contains a character that
is not in the character class [[:blank:]<>].
2. if that is not the case (which includes the total absence of the
From: header), then discard the message
I proposed this:
WSP = ' ' # 2 characters: space & tab
OR = '9876543210^0'
: 0
* ! WL ?? ^^yes^^
*$ $OR ! ^From:
*$ $OR ^From:[$WSP]*$
*$ $OR ^From:.*<>
...
Mine would accept
From: < >
which yours would reject.
Mine would reject
From: "<>" <a(_at_)b(_dot_)c>
which yours would accept.
So in many ways, your solution is better.
--
Grtz, Ruud
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail