procmail
[Top] [All Lists]

Re: Recipe doesn't deliver to specified folder

2003-07-11 07:27:15
Lee Hoffner wrote:

:0 :
* ? egrep -is -f /home/username/INBOX/spammerlist

(extraneous lockfile)

    :0 hw
    SPAMMER=|formail -r |formail -x To:

Without a condition, I think this is simpler:

FROM=`formail -rxzTo:`

    :0 :
    | echo "`date`: Caught a returning spammer! ($SPAMMER)" >>delete.log

This will deliver the message, probably you need the 'ci' flags ?

    :0 :
    SPAM

I don't see how the message is making it this far when it's
already been delivered...

If delete.log is already your LOGFILE it might be easier to just do
something like this:

FROM=`formail -rtzxTo:`
:0
* ? fgrep -sixq "$FROM" $SPAMMERLIST
{
        LOG="Caught a returning spammer! ($FROM) $NL"

        :0:
        SPAM
}

g'luck!

TFC

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