Szerző: Marc Perkel Dátum: Címzett: exim-users Tárgy: Re: [exim] sg and $spam_report
Jeremy Harris wrote: > On 12/05/2009 08:59 PM, 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.
>>
>
> Assuming that ${sg uses the PCRE library, try putting the matcher into
> multiline mode using (?m). http://www.pcre.org for docs.
>
> Cheers,
> Jeremy
>
>
It was a nice try but apparently (?m) doesn't work.