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:37:37 UTC

[Bug 3297] RFE: rule to check unwanted attachment extensions

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





------- Additional Comments From kevin.geddie@magma.ca  2004-04-23 09:37 -------
Created an attachment (id=1916)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=1916&action=view)
Patch to implement check_unwanted_extensions eval check

Modifications were made to the Mail::SpamAssassin::EvalTests Perl module.

The check_unwanted_extensions() function was added.  This function accepts a
list of string values (the unwanted extensions).

A new section was added to the end of the _check_mime_header() function, in
order to store the extension of each MIME attachment.

A section of new code was added to the UUencode Microsoft Executable check in
the _check_attachments function, in order to store the extensions of any
UUencoded files.

All attachment extensions are stored in an array referenced as
$self->{attachment_extensions}.




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