[Mailman-Users] Removal of attachments causes problems
barry at python.org
Wed Jan 6 16:22:31 CET 2010
On Jan 6, 2010, at 8:18 AM, Ralf Hildebrandt wrote:
> * Ralf Hildebrandt <Ralf.Hildebrandt at 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:
>> are stored as "attachment.bin" instead of "attachment.jpg"
>> 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.
More information about the Mailman-Users