On Mon, 8 Sep 1997, Philip Hazel wrote:
> On Fri, 5 Sep 1997, Jason S Kohles wrote:
>
> > and they all fail with Error in message_filter file: unrecognized condition
> > word "{$sender}" near line 267 of filter file,
>
> You need quotes round that, because it contains spaces. The complaint is
> that "if" has read the condition "${lookup" and now expects "then" or
> "else" or "and" or "or", etc.
>
It also seems that "if 1 then ... endif" does not work as you would expect it
to, (it returns 'unrecognized condition word then'), it does seem to work
though, if you change the lookup command to:
if ${lookup{$sender}@@partial0-lsearch{/etc/mail/rejects}{1}{0}} above 0
then
logfile /var/log/spam/by-reject-file 0666
log "$tod_log - $h_to - $h_from - $h_subject - ($h_to,$h_from)"
seen deliver spambot
endif
Jason Kohles -- System Administrator -- XMission Internet Access
robobob@??? (at work) robobob@??? (at play)
"If you can smile when things go wrong, you have someone in mind to blame."
--
* This is sent by the exim-users mailing list. To unsubscribe send a
mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/