procmail
[Top] [All Lists]

Re: Matching A Missing Subject: Field

1997-06-06 10:10:00
On Fri, 6 Jun 1997, era eriksson wrote:

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.

Thanks! I'll put it to good use. I'm trying to send an autoreply with a 
'help' message to emails coming in to, i.e.: info(_at_)ddave(_dot_)com without 
a 
subject. I've been playing with several mailers and noticed that if I 
leave the subject field blank, the recipient gets a message minus the 
subject field and the mailer on the receiving end usually inserts a 
message like 'no subject'. What constitutes an empty Subject field? Would 
I match with something like:

:0
* ^Subject:[    ]*\>
$ACTION

I'm figuring that an empty field would contain a tab or space. Is this a 
valid assumption?

Regards,

Dave/Webmaster

           Join www.cauce.org | Join Joke-L
  Hit SPAMMERS Where It Hurts | Listserv <listserv(_at_)ddave(_dot_)com>

"God grant me the serenity to accept the things I cannot change, 
the courage to change the things I can, and the wisdom to hide 
the bodies of the SPAMMERS that I killed."


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