[Mailman-Users] attachments renamed in archives
Mark Sapiro
mark at msapiro.net
Thu Jun 18 19:09:19 CEST 2009
Gruver, Sandi wrote:
>I have this line in the mm_cfg.py file:
>SCRUBBER_USE_ATTACHMENT_FILENAME_EXTENSION = True, but attachments (.pdf) are being renamed to .obj.
>
>Can you please give a big hint as to what do I need to do to fix this?
Do the MIME headers of the attachment have a Content-Disposition:
header with a filename= or name= parameter with the .pdf extension. If
so, Scrubber should use it. Even if not, Scrubber will normally guess
'.pdf' for the extension if the Content-Type is application/pdf.
The fact that the attachment is saved with a .obj extension indicates
the sending MUA may be giving it MIME type application/octet-stream
rather than application/pdf, and not giving it a filename.
To say more, we would need the actual MIME headers from the attachment.
You can find these in the archives/private/LISTNAME.mbox/LISTNAME.mbox
file.
--
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