You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@issues.apache.org on 2010/07/26 19:35:02 UTC

[Bug 6469] New: compiling: Illegal octal digit '9' ignored...

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

           Summary: compiling: Illegal octal digit '9' ignored...
           Product: Spamassassin
           Version: 3.3.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sa-compile
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: rosenbaumlm@ornl.gov


I'm seeing warnings like this when I run sa-compile:

Illegal octal digit '9' ignored at
/usr/local/lib/perl5/site_perl/5.10.1/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
line 1083, <$fh> line 5795.
Illegal octal digit '9' ignored at
/usr/local/lib/perl5/site_perl/5.10.1/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
line 1083, <$fh> line 6665.

I've done some digging and it looks like the rule2xs() function is trying to
parse stuff like this:

r \2512009 microsoft | unsubscribe | more newsletters | privac:FB_SOFTTABS
__FB_BCs __SEEK_YRQYH9,[l=1] __SUBSCRIPTION_INFO,[l=1]
r copyright \2512009 by nacha - the electronic payments
associ:LOTTO_AGENT,[l=1] T_LOTTO_DEPT,[l=1] __ATM_CARD,[l=1] __FEES,[l=1]
__LOTTO_WIN_01,[l=1] __SEEK_VZ7OQ6,[l=1] __YOUR_FUND,[l=1]

I think these are coming from lines like this:

sought_rules_yerp_org/20_sought.cf:body __SEEK_YRQYH9  /\x{a9}2009 Microsoft \|
Unsubscribe \| More Newsletters \| Privacy/
sought_rules_yerp_org/20_sought.cf:body __SEEK_VZ7OQ6  /Copyright \x{a9}2009 by
NACHA - The Electronic Payments Association/

So the year occurs right after the octal escape code for the copyright symbol,
and the fixup_re code is assuming the "2009" is part of the octal escape. I
suspect this error prevents the rule from being used.

The code being executed is

$output .= '"'.chr(oct($esc)).'"';

For the string \2512009, it is trying to do oct() on the whole string.  It
should just be using the first three digits, and treating the rest as literal
text.

This error was observed on the following systems:

SpamAssassin version 3.3.1
  running on Perl version 5.10.1
SunOS email 5.9 Generic_118558-39 sun4u sparc SUNW,Sun-Fire-V210
and
SunOS spam5 5.10 Generic_141444-09 sun4u sparc SUNW,Sun-Fire-V240

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

[Bug 6469] compiling: Illegal octal digit '9' ignored...

Posted by bu...@issues.apache.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6469

Mark Martinec <Ma...@ijs.si> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Mark Martinec <Ma...@ijs.si> 2010-07-26 13:55:48 EDT ---
Thanks for digging to the bottom of the problem! The reported problem is a
duplicate of Bug 6336, so I'll close this one. Larry, would you be so kind
and cut/paste your whole posting to the Bug 6336.

*** This bug has been marked as a duplicate of bug 6336 ***

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