Kimberli Tompkins wrote:
>
>This is the message that appears in the archive just above the
>attachment link
>
>A non-text attachment was scrubbed...
>Name: Lab Contact List 09-11-08.xls
>Type: application/msexcel
>Size: 31232 bytes
>Desc: not available


application/msexcel is not a registered mime type
(<http://www.iana.org/assignments/media-types/application/>). Thus,
the python function mimetypes.guess_all_extensions() does not know
what extension to assign to it and we default it to .bin.

The underlying problem is the MUA that generated the message is not
assigning the proper registered mime type application/vnd.ms-excel to
the attachment.

There are a few things you can do about it.

1) Use an MUA the gives .xls attachments the proper mime type, or

2) set

SCRUBBER_USE_ATTACHMENT_FILENAME_EXTENSION = True

in mm_cfg.py so Scrubber will use the extension from the file name
instead of one based on the mime type and restart Mailman, or

3) add the line

application/msexcel   xls

to one of the following files

    "/etc/mime.types",
    "/etc/httpd/mime.types",                    # Mac OS X
    "/etc/httpd/conf/mime.types",               # Apache
    "/etc/apache/mime.types",                   # Apache 1
    "/etc/apache2/mime.types",                  # Apache 2
    "/usr/local/etc/httpd/conf/mime.types",
    "/usr/local/lib/netscape/mime.types",
    "/usr/local/etc/httpd/conf/mime.types",     # Apache 1.2
    "/usr/local/etc/mime.types",                # Apache 1.3

and restart Mailman.

-- 
Mark Sapiro <[EMAIL PROTECTED]>        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
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://wiki.list.org/x/QIA9

Reply via email to