[email protected] wrote:

>Trying to add a file of type .msg as a mail attachment.  Have added:
>
>application/vnd.ms-outlook
>application/msoutlook
>application/octet-stream
>
>to the content filtering: Remove message attachments that don't have a 
>matching content type. Leave this field blank to skip this filter 
>test


You really don't want to add application/octet-stream unless you want
to accept all sorts of potentially nasyt stuff. Neither
application/vnd.ms-outlook nor application/msoutlook are registered
mime types at all. See
<http://www.iana.org/assignments/media-types/index.html>.

The type you want for a message attachment is message/rfc822.

In general, if you are trying to find the mime type to allow for a
particular message attachment, look at the raw source of a message
containing the attachment and find the Content-Type: header of the
part containing the attachment.

Note that even if you accept attached message/rfc822 parts, the
sub-parts of that message are still subject to your content filtering
rules.

E.g. putting

multipart
message/rfc822
text/plain

in pass_mime_types will filter all but the text/plain parts from
multipart and attached messages.

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

------------------------------------------------------
Mailman-Users mailing list [email protected]
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