procmail
[Top] [All Lists]

Re: forwarding to two places, and appending info to header

2002-11-21 14:02:55
LuKreme wrote
On Thu, 21-Nov-2002, at 08:26:42 -0700, terry(_at_)terrytraub(_dot_)org wrote:
    # check the "live" list for approved addresses and header keywords
    :0c:
{
    * ? formail -x"From" -x"From:" -x"Sender:" -x"Reply-To:"
-x"Return-Path:" -x"To:" -x"Received:" -x"Subject:" | grep -iF
--file=live.txt
    ${MAILDIR}/regular.mail

    # Also forward it to web mail (how to combine both actions?)
    :0
<SNIP>
    !blisterpeanuts(_at_)yahoo(_dot_)com
}

should do it.

No, that would always forward the message, regardless of the result of
the check in the first recipe (that used to be in the second one too).
You need the "A" flag to replace the condition, see my earlier message.

/HW

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