[Mailman-Users] JPG Images not being filtered

Mark Sapiro mark at msapiro.net
Sat Jan 8 01:39:52 CET 2011


Mike McFall wrote:

>I had someone email out to the entire list an embedded jpg image that was
>not filtered, yet I have jpg on the list of file attachments to be
>filtered.  Can embedded images not be filtered?


They can, but there are several possibilities.

To filter on extension, the 'attachment' must have either a 'filename'
parameter in its Content-Disposition header or a 'name' parameter in
its Content-Type header. Then, the extension of that name must exactly
match (including case in Mailman prior to 2.1.10) an extension in
filter_filename_extensions. So, maybe the attachment didn't have a
filename or name or it didn't match, e.g. it was jpeg and you only
list jpg, or your Mailman is 2.1.9 or older and it was JPG and you
only have jpg.

It is advisable to include only those MIME types you want to accept in
pass_mime_types, e.g. 'multipart', 'text/plain' and 'text/html' if
that's all you want.

Or, if pass_mime_types is empty, put 'image/jpeg' or even 'image' in
filter_mime_types.

-- 
Mark Sapiro <mark at msapiro.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