procmail
[Top] [All Lists]

Re: Stopping a loop

2001-11-28 15:33:23
At 15:43 2001-11-28 -0600, Justin Shore wrote:
: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?

:0:
* ? formail -x"From" -x"From:" -x"Sender:" \
    -x"Reply-To:" -x"Return-Path:" -x"To:" \
    -x"Received:" \
    | egrep -is -f ~/ralsky.list
| formail -I "X-Spam: identifier" >> mailbox

or if you prefer:

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

        :0:
        mailbox
}


---
 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>