Re: [exim] sg and $spam_report

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Mike Cardwell
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] sg and $spam_report
On 06/12/2009 12:23, Lena@??? wrote:

>> From: Marc Perkel
>
>> apparently (?m) doesn't work.
>
> Try (?s-m)


Seems to work:

root@haven:~# exim4 -be
'${sg{line1\nline2\nline3\nline4}{\N(?s-m).+?([^\n]+)$\N}{\$1}}'
line4
root@haven:~#

So this should pull out the last line of the spam report:

${sg{$spam_report}{\N(?s-m).+?([^\n]+)$\N}{\$1}}

Marc, how did you get SpamAssassin to provide that information in the
$spam_report? I've used ok_languages to trigger UNWANTED_LANGUAGE_BODY
rules but that doesn't stick the detected language in the report...

--
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/
Technical Blog: https://secure.grepular.com/blog/