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...@bugzilla.spamassassin.org on 2004/03/05 16:53:10 UTC

[Bug 3125] New: [RFE] obfuscation character classes for rules

http://bugzilla.spamassassin.org/show_bug.cgi?id=3125

           Summary: [RFE] obfuscation character classes for rules
           Product: Spamassassin
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Rules
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: martin.t.kutschker@blackbox.net


How abput custom character classes via precompiled Perl regexps:

In Perl you can do something like this (non-exhaustive list of obfuscations):
$a = qr/[aA4@]/
$e = qr/[eE3]/
$i = qr/[iI1|]/
$o = qr/[oO0]/
$W = qr/[\W_]?/

Example rule:
body FIORICET /\bF${W}${i}${W}${o}${W}r${W}${i}${W}c${W}${e}${W}t${W}\b/i
body MORTGAGE /\bm${W}${o}${W}r${W}t${W}g${W}${a}${W}g${W}${e}${W}\b/i

Test:
perl -e '$_="f_io:r|cet";$e=qr/[eE3]/;$i=qr/[iI|]/;$o=qr/[oO0]/;$W=qr/[\W_]?/;
print "match\n" if (/\bF${W}${i}${W}${o}${W}r${W}${i}${W}c${W}${e}${W}t\b/i)'

It could be handy if these obfuscation classes would be available for all regexp
rules (or at least subject, body and rawbody).

Alternatively let users define their own character classes via rules. Though the
names/syntax should be rather short to make it useful.



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