https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6649

Kevin A. McGrail <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Kevin A. McGrail <[email protected]> 2011-08-15 21:15:16 
UTC ---
(In reply to comment #4)
> Created attachment 4954 [details]
> Patch to escape linefeeds in re2c input, against trunk
> 
> This might do it:
> 
>   $output =~ s/\n/\\n/g; # escape linefeeds
> 
> Near the end of lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm.  It
> makes the error go away.  Still need to test that it's actually creating 
> useful
> output.
> 
> http://re2c.org/manual.html says ANSI-C escape sequences (which \n is) are
> allowed in strings.

Excellent.  In theory sounds very good.  Any of the users complaining able to
test?  I don't use re2c on any production systems :-(

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to