On 06/12/2009 12:23, [email protected] wrote:

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

Seems to work:

r...@haven:~# exim4 -be
'${sg{line1\nline2\nline3\nline4}{\N(?s-m).+?([^\n]+)$\N}{\$1}}'
line4
r...@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/

-- 
## List details at http://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