[Mailman-Users] msg file as attachment gets striped out

Mark Sapiro mark at msapiro.net
Thu Apr 7 21:17:19 CEST 2011


rpschwar at knology.net 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 <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