http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5493

           Summary: sa-compile not correctly parsing escaped backslashes
           Product: Spamassassin
           Version: 3.2.0
          Platform: All
               URL: http://www.disco-zombie.net/SARULES/XM_Body.cf
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: sa-compile
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


sa-compile, when extracting the regex's into the scanner*.re files, seems to
interpret backslahses as either '\"' or '\""'.

Here's the example I used on the sa-users mailing list...

Original rule's regex:

/(?:fr(?:o|0|\(\))(?:n|\|\\\|)[EMAIL PROTECTED])/i

Scanner.re result:

"fro|\""|"            {RET("__XM_Sft_Ms_Fp_L33T");}

It produces the above output, instead of "fro|\|".

This comes from the file in the URL field of this ticket. Do an sa-compile with
the file in your spamassassin config, and you'll see this and a few more
examples of the same thing. I've even tried escaping it with the hex code for a
backlash, but I get the same results. :-/ Always either '\"' or '\""'.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to