procmail
[Top] [All Lists]

Re: [SAtalk] Spamlister

2003-01-24 11:25:12
At 09:40 2003-01-24 +0000, mimo wrote:
I tried that (btw, I'm not great with procmail either) and I think it didn't work - so what I have now is this:
:0c:
* ^X-Spam-Status: Yes
Folders/spam
:0:
* ^X-Spam-Status: Yes
| grep -i "From:" | spamlister

Bad form.  You should prohably use formail to extract the From:
(be prepared for MULTIPLE ADDRESSES in a From: now and again - some braindead Windowz MTAs bounce that way).

Alternatley, pipe _just_the_head_ to grep by supplying the 'h' flag for the recipe, and also, anchor the from:

:0h:
* ^X-Spam-Status: Yes
| grep -i "^From:" | spamlister

otherwise, you'll catch every From: line within a message BODY (think of THIS message), and things like Resent-From:, etc.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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