Re: [exim] Help with PCRE (Wordlists)

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: ashkan
Data:  
Para: exim-users
CC: exim-users
Assunto: Re: [exim] Help with PCRE (Wordlists)
Cool

Got it, thanks!

I opted to use nwildlsearch instead of wildlsearch (so as to avoid string exp). Why do you recommend using Perl tho instead of within Exim? Just trying to setup simple wordlists with no scoring.

-a

At 01:48 AM 10/21/2005, Tony Finch wrote:
>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}}