[Exim] FW: bombarded with Medication - follow up

Top Page
Delete this message
Reply to this message
Author: Thomas Kinghorn
Date:  
To: Exim-Users (E-mail)
Subject: [Exim] FW: bombarded with Medication - follow up
> Hi List
>
> is there a way to check for specific words in the message body in the
> ACL_check_data
>
> I was thinking of something like
>
>  # Reject message containing specific blacklisted words
>   deny  message = This message contains blacklisted words.
>         demime = *
>         condition = ${if ($message_body)contains
> {lsearch;/usr/exim/blocked-words/blockedwords}{1}{0}}

>
> where blockedwords is a list of Medicines etc..., for example
>

This did not work.

If I add the system filter:

if $message_body: contains "Vioxx"

it works.

Now, is there a way to get the system filter to lsearch a file?
eg

if $message_body: contains
{lsearch;/usr/exim/blocked-words/blockedwords}{$value}}

thanks in advance.

Tom