procmail
[Top] [All Lists]

Re: Matching null Message-ID?

1997-09-16 11:56:53
On Tue, 16 Sep 1997, Timothy J Luoma wrote:

I asked this before, but can't find the answer.

Can I do this:

:0fhw
* ^Message-ID: <>
|formail -A"X-Spam: NoMessageID"

Yes, but you can also do this:

:0
* !^Message-Id:[        ]*<[^   <>@]+(_at_)[^        <>@]+>[         ]*$
{ SPAMMER="invalid Message-Id:" }

A space and a tab inside each set of brackets.  This recipe originated
on the list, but I don't remember who posted it.  

--
Gregory S. Sutter                       "How do I read this file?"
mailto:gsutter(_at_)pobox(_dot_)com                "You uudecode it."
http://www.pobox.com/~gsutter/          "I I I decode it?"

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