On Sat, 2009-12-05 at 12:59 -0800, Marc Perkel wrote:
> Trying to use the sg command on the return from SpamAssassin to extract
> info from the report. The problem is $spam_report has multiple lines and
> the sg seems to want to operate on each line individually. What I'd like
> to do is extract a string from part of the last line. I added a line at
> the end that looks like this:
>
> \t Languages: en de sv
>
> Trying to get the lust after the word languages. How do I do that?
>
Perhaps use a 'match' along with the multiline modifier. I.e:
${if match {$spam_report} {\N(?m)^...\N}
Something of that sort?
John.
--
John Horne, University of Plymouth, UK
Tel: +44 (0)1752 587287 Fax: +44 (0)1752 587001