[Mailman-Users] filtering mp3's

Mark Sapiro msapiro at value.net
Tue Mar 29 19:09:27 CEST 2005


Darkman wrote:

>I added audio to my filter_mime_types, but does that filter mp3s? or no, if 
>not what would I use to add to my filter_mime_types, thansk in advance.

This will disallow all audio types including audio/mpeg and audio/MPA
which are the types that _should_ be used for mp3 content, but there's
no way to guarantee that someone (or some MUA) wouldn't send an mp3
file as application/octet-stream or application/x-anything or some
other type.

In the latest 2.1.6 beta, there is the ability to filter messages based
on extension or other pattern match of the 'filename' of the
attachment. E.g., placing the following regex in header_filter_rules

 content-.*name.*\.mp3

will filter messages with file attachments with '.mp3' in the name.
Note that this is *message* filtering based on the attachment, not
filtering of the attachment from the message.

The latest beta can be downloaded from   
http://mm.tkikuchi.net/mailman-2.1.6b5.tgz

The latest on sourceforge is still 2.1.6b4 which has a bug in this
feature.

--
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list