Re: [Mailman-Users] msg file as attachment gets striped out
That worked for adding the attachment. However, the From, To and Subject are removed.
Robert
On Thu 07/04/11 3:17 PM , Mark Sapiro mark@msapiro.net sent:
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
rpschwar @knology.net wrote: 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@msapiro .net> The highway is for gamblers,San Francisco Bay Area, California better use your sense - B. Dylan
rpschwar@knology.net wrote:
That (message/rfc822) worked for adding the attachment. However, the From, To and Subject are removed.
I don't know if I understand what you are saying. If you are saying a message with an attached message/rfc822 part passed through the list's content filtering and all that was left of the attached part was the body without the headers, I don't see how that can happen.
Try posting a message with an attached message to a test list with the same content filtering settings and including yourself as a Bcc: recipient of the post and compare the two received messages.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Test1 is the original message with TO: FROM: and Subject: Test1a is the message sent to the mailing list as an attachment.
Robert
-----Original Message----- From: Mark Sapiro [mailto:mark@msapiro.net] Sent: Thursday, April 07, 2011 4:34 PM To: rpschwar@knology.net; mailman-users@python.org Subject: Re: [Mailman-Users] msg file as attachment gets striped out
rpschwar@knology.net wrote:
That (message/rfc822) worked for adding the attachment. However, the From, To and Subject are removed.
I don't know if I understand what you are saying. If you are saying a message with an attached message/rfc822 part passed through the list's content filtering and all that was left of the attached part was the body without the headers, I don't see how that can happen.
Try posting a message with an attached message to a test list with the same content filtering settings and including yourself as a Bcc: recipient of the post and compare the two received messages.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro wrote:
rpschwar at knology.net wrote:
That (message/rfc822) worked for adding the attachment. However, the From, To and Subject are removed.
I don't know if I understand what you are saying. If you are saying a message with an attached message/rfc822 part passed through the list's content filtering and all that was left of the attached part was the body without the headers, I don't see how that can happen.
It turns out there is a bug in content filtering which I have reported at https://bugs.launchpad.net/mailman/+bug/757062 and which see for more detail. The bug is that if collapse_alternatives is Yes, a message/rfc822 attachment will lose it's headers if it is a multipart/alternative message.
This will be fixed in Mailman 2.1.15 and can be avoided by setting collapse_alternatives to No.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Mark Sapiro
-
Robert P. Schwartz
-
rpschwarï¼ knology.net