procmail
[Top] [All Lists]

Re: to = """

2000-01-06 06:49:19
On Thu, 6 Jan 2000 15:18:43 +0200, "Jakob Solomon" <jakob(_at_)finjan(_dot_)com>
wrote:
How do write a script
which will send to /dev/null all e-mail
which have an empty 'To:' field   ?

Let's rephrase that: Send to Dave Null all email which doesn't have a
To: field with something alphanumeric in it:

    :0
    * ! ^To: .*[a-z]
    /dev/null

Do note that mail can validly have a more or less empty To: field and
instead specify the recipients in Cc:, and that you can easily
masquerade an empty To: field by putting some unimportant comment
there, like

    To: recipient list not shown:;

or

    To: Recipients of the Procmail mailing list <nobody(_at_)example(_dot_)com>

In fact, I don't think I have ever seen a message with a To: field
which was there but which was empty. Perhaps you are actually looking
for something else? Could you tell us what you are trying to
accomplish?

/* era */

-- 
 Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
  Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition

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