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 <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to