Auteur: Hans Wilmer Datum: Aan: exim-users Onderwerp: [Exim] matching entries contained in a file
Hi,
I've been trying to setup my # Exim filter so that it can filter mail
that comes from a number of senders. The sender addresses are listed
in a file like that:
The purpose is to set up a SPAM filter, but I'd like to that
user-dependent and not side-wide as it is currently done by listing
the unwanted senders in /etc/exim.reject. I've tried to use a
partial-lsearch on the file that lists the addresses, to search for
the $sender_address. But the search seems to fail in any case because
my file is not in the correct format for lsearch. It would have too
look like the following:
The lsearch would eventually find the $sender_address as the key and
set $value to "TRUE". But this seems to be a bit stupid :) How should
an if statement look like that looks for the $sender_address in the
list?