procmail
[Top] [All Lists]

Stopping a loop

2001-11-28 15:00:01
I have a quick question about preventing loops in my anti-spam filters. I'd like to write a simple X-Spam: header entry to make I direct to my spam bucket if the message doesn't already have that header entry. I'm trying to bounce non-spam mail to my non-priveleged user so I can respond to it but the bounce is being filtered by the body scan on a certain phrase. I'm looking at one of the FAQs and have found part of what I need.

http://www.ling.helsinki.fi/users/reriksso/procmail/mini-faq.html#f-flag

It makes the entry but doesn't write to a file. It continues the message delivery with the altered message. I want to simply write it to a file. My test recipe looks like this right now.

:0 :
* ? formail -x"From" -x"From:" -x"Sender:" \
    -x"Reply-To:" -x"Return-Path:" -x"To:" \
    -x"Received:" \
    | egrep -is -f ~/ralsky.list
test

That matches the message but doesn't add the X-Spam:. This will make the change for me "| formail -I "X-Spam:"" but I don't know how to then direct that to a spool? Any suggestions?

thanks
 Justin
--

--
Justin Shore, ES-SS ES-SSR      Pittsburg State University
Network & Systems Manager       Kelce 157Q
Office of Information Systems   Pittsburg, KS 66762
Voice: (620) 235-4606           Fax: (620) 235-4545
http://www.pittstate.edu/ois/

Warning:  This message has been quadruple Rot13'ed for your protection.
_______________________________________________
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>