-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

de ren0r wrote:
> 
> All the files are stored with the file-extension as they are send to
> the list, except *.pdf-files. They are stored as attachment.obj
> instead of attachment.pdf. it seems that pipermail / scrubber or
> another candidate doenst get it's mime-type in the archiving-process.
> 
> 
> 
> 
> Any suggestions how to fix that? Maybe there is a relation from my
> /etc/mime.types to that problem?

There are a few possible of solutions.

1) you can set

SCRUBBER_USE_ATTACHMENT_FILENAME_EXTENSION = True

in mm_cfg.py to use the extension of the attachment filename instead of
guessing the extension from the content-type.

2) you can try to make sure that all the clients that send pdf
attachments give them a content-type of application/pdf.

3) if SCRUBBER_USE_ATTACHMENT_FILENAME_EXTENSION is False, scrubber
calls the Python library mimetypes.guess_all_extensions() function to
map the content-type to an extension. This module in turn supplements
its built in list by attempting to read several files (depending on
Python version) including /etc/mime.types so if the issue is due to some
content-type other than application/pdf, associating that content-type
with the pdf extension in /etc/mime.types may work.

- --
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFG4WOWVVuXXpU7hpMRAkO7AKDhZcVr2O4lpjJ34jIP9bByOTuBSgCfTJRX
6mRUm9M+ZlQzKoc2nhHaI00=
=8UHf
-----END PGP SIGNATURE-----
------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to