era eriksson writes on 6 June 1997 at 12:52:33
On Fri, 6 Jun 1997 00:26:10 -0700 (PDT), Dave/WebMaster
<ddave(_at_)ddave(_dot_)com>
wrote:
Is it possible to match an email message sent without a Subject field. If
so, how?
:0
* ! ^Subject:
... do something
This will of course catch only messages with no Subject field
whatsoever; you might also want to check for empty Subject fields.
Here's what I do:
# be sure all messages contain a Subject: line
:0
* ^Subject:
* !^Subject:[ ]*(Re:?)*[ ]*$
{ }
:0Ehfw
| formail -I "Subject: [no Subject: given in original message]"
SUBJECT=`formail -zx "Subject:"`
Dan
------------------- message is author's opinion only ------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>
http://www.bristol.com/~DanS
Bristol Technology B.V. +31 33 450 50 50, ...51 (FAX)
Amersfoort, The Netherlands {info,jobs}(_at_)bristol(_dot_)com