On Jan 6, 2010, at 8:18 AM, Ralf Hildebrandt wrote:

> * Ralf Hildebrandt <ralf.hildebra...@charite.de>:
>> I have a list where the attachments are removed and stored on the
>> mailman server itself.
>> 
>> This works like a charm, but SOME image attachments of the type:
>> 
>> image/pjpeg
>> 
>> are stored as "attachment.bin" instead of "attachment.jpg"
>> 
>> Why?
>> Example below:
> 
> adding "image/pjpeg" to /etc/mime.types fixed that:
> 
> image/jpeg                                      jpeg jpg jpe
> image/pjpeg                                     jpeg jpg jpe

This is because Mailman uses Python's mimetypes module to generate the file 
name, and I believe that consults /etc/mime.types where available.  Since 
before you edit Python didn't know anythig about image/pjpeg, it assumed it was 
random binary data, hence the .bin suffix.

-Barry

------------------------------------------------------
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