Re: [exim] Help with PCRE (Wordlists)

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: ashkan
CC: exim-users
Subject: Re: [exim] Help with PCRE (Wordlists)
On Thu, 20 Oct 2005, ashkan wrote:

> ${lookup{$message_body}wildlsearch{/etc/exim/wordlist}{yes}{no}}


This requires that the whole message body matches a key in the file.
You need to adjust the regexes in the file so that they match the whole
body rather than just an individual word.

You also need to re-read the caveats about expansion of keys in
wildlsearch (as opposed to nwildlsearch).

You would be better off doing this in Perl, e.g. as SpamAssassin rules.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}