procmail
[Top] [All Lists]

Re: identifying no "From" header

2005-07-28 11:03:54
Dallman Ross wrote:

days.  I have read some of the follow-ups to this post.  But I
haven't yet seen the simplest, to my knowledge, way of catching an
empty or blank or just-angle-brackets header.  This is it:


  :0:  # brackets contain caret, space, tab, angles
  * ! ^From:.*[^      <>]
  /dev/null

Good.  It also will catch the absence of any From: header at all, which 
something like

  :0 # brackets enclose space, tab, both angle brackets
  * ^From:[     <>]*$
  /dev/null

would miss.

It doesn't need the local lock, though.


____________________________________________________________
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

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