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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
How abput custom character classes via precompiled Perl regexps:
In Perl you can do something like this (non-exhaustive list of obfuscations):
$a = qr/[EMAIL PROTECTED]/
$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.