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/04/23 18:24:57 UTC
[Bug 3297] New: RFE: rule to check unwanted attachment extensions
http://bugzilla.spamassassin.org/show_bug.cgi?id=3297
Summary: RFE: rule to check unwanted attachment extensions
Product: Spamassassin
Version: 2.63
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Rules (Eval Tests)
AssignedTo: spamassassin-dev@incubator.apache.org
ReportedBy: kevin.geddie@magma.ca
Requesting a rawbody eval rule called "check_unwanted_extensions", which
scores against an email if it contains an attachment with an "unwanted"
extension.
For example:
rawbody EXTENSION_IMAGES eval:check_unwanted_extensions('gif', 'jpg', 'jpeg')
describe EXTENSION_IMAGES Email contained an attachment with an image
extension.
score EXTENSION_IMAGES 0.1
rawbody EXTENSION_EXE eval:check_unwanted_extensions('')
describe EXTENSION_EXE EXE attachments are NOT allowed at my company email.
score EXTENSION_EXE 10.0
I will attach a patch which implements this feature, by altering the
Mail::SpamAssassin::EvalTests Perl module.
NOTE: There is no Content-Type checking here, on purpose.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.