Hello,

I  have the statement in a system wide filter:

if $h_subject: contains "spam"
or $h_subject: contains "whatever"
then
    headers add "X-Banned-Subject: Yes"
endif

Is there a way to place all the words I'd like to filter in a file so I don't have to keep adding them to the "OR" condition? I was thinking about something like this but it isn't working as I would hope.

if $h_subject: contains lsearch{/etc/exim/banned_subjects.conf}
then
    headers add "X-Banned-Subject: Yes"
endif

-Patrick



--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to