procmail
[Top] [All Lists]

rule set problem

2002-10-22 18:11:31

:0fw:
* ! ? (test -f ${WHITELIST} && ( ${FORMAIL} -zxFrom: | $GREP -i -f ${WHITELIST} ))
* ! ^FROM_DAEMON
* ! ^FROM_MAILER
| ${PROCCONFIRM}

----------------------------------------------------------------------
The problem I am having is with the first test.
I am trying to test for the following conditions:
NOT (The file $WHITELIST exists AND the FROM matches a name in $WHITELIST)

But nothing seems to work quite right. I have attached my LOG output. I'm sure I'm syntactically close, but I'm just missing something...



procmail: Executing " test -f ${BLACKLIST} && ( ${FORMAIL} -zxFrom: | $GREP -i -f ${BLACKLIST} )" procmail: Non-zero exitcode (1) from " test -f ${BLACKLIST} && ( ${FORMAIL} -zxFrom: | $GREP -i -f
${BLACKLIST} )"
procmail: No match on " test -f ${BLACKLIST} && ( ${FORMAIL} -zxFrom: | $GREP -i -f ${BLACKLIST} )" procmail: Executing " (test -f ${WHITELIST} && ( ${FORMAIL} -zxFrom: | $GREP -i -f ${WHITELIST} ))" procmail: Non-zero exitcode (1) from " (test -f ${WHITELIST} && ( ${FORMAIL} -zxFrom: | $GREP -i -f
 ${WHITELIST} ))"
procmail: Match on ! " (test -f ${WHITELIST} && ( ${FORMAIL} -zxFrom: | $GREP -i -f ${WHITELIST} ))
"
procmail: Match on ! "(^(Mailing-List:|Precedence:.*(junk|bulk|list)|To: Multiple recipients of |(( (Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma?(st(e?r)?|n)|office
)|(send)?Mail(er)?|daemon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps)|r(e(quest|spons
e)|oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|ystem)|A(dmin(istrator)?|MMGR|uto
answer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@> ][^<)]*(\(.*\).*)?)?$([^>]|$)))" procmail: Match on ! "(^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^((_dot_)%(_at_)a-z0-9])?(P
ost(ma(st(er)?|n)|office)|(send)?Mail(er)?|daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error
)?|s(erv(ices?|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-z0-9]*)?[%@> ][^<)]*(\(
.*\).*)?)?$([^>]|$))"

--
Consultants are mystical people who ask a company for a number and then
give it back to them.


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