check attachment header by SpamDetect.py

Bug #558149 reported by tkikuchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Undecided
Unassigned

Bug Description

SpamDetect.py and Privacy -> Spam interface can check
incoming message haeder by regular expressions and
discard/reject/hold the message. It can prevent viruses
by blocking multipart messages but many users are now
want to pass multipart. This patch extents the check
into the attachment header so that viruses which have
.exe/.pif file can be prevented by the same interface.
Note that cheking is limited to the second level of
multiparts because collecting all the header will cause
infinite loop because owner notification message is
also checked by this module.

Usage: after applying this patch and restart mailman,
go to the privacy/spam admin page and insert a rule

content-.*name.*\.(exe|pif|com|vbs)

to be discarded.

Cheers,

Revision history for this message
tkikuchi (tkikuchi-users) wrote :

The file SpamDetect.py.patch was added: SpamDetect.py.patch

Revision history for this message
tkikuchi (tkikuchi-users) wrote :

Logged In: YES
user_id=67709

Merged in CVS, closing.
Checking in Gui/Privacy.py;
new revision: 2.15.2.5; previous revision: 2.15.2.4
Checking in Handlers/SpamDetect.py;
new revision: 2.3.2.2; previous revision: 2.3.2.1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.