[Mailman-Users] removing attachments, keeping html

Mark Sapiro msapiro at value.net
Thu Jun 30 02:15:35 CEST 2005

Gerry Starnes wrote:

>I am interested in disallowing attachments (documents, images), but want 
>to enable use of html formatting such as bold and color. The FAQ 
>addresses html attachments only that I have seen. I have tried a variety 
>of settings, but haven't hit the right combination. I'd appreciate any help.

There is a basic design decision in content filtering that makes this
difficult. Namely, after filtering, only the first remaining sub-part
from a multipart/alternative part is retained.

What this means in practice is if you want to allow both text/plain
parts and text/html parts, the only way to get html to the list is to
insure that the MUA (e-mail client) that creates the post creates an
html only message, not a multipart/alternative message with both
text/plain and text/html sub-parts.

If you want Mailman content filtering to pass the html part from a
multipart/alternative post, the only way to do this is to disallow
text/plain and require everyone to post html, or to turn off content
filtering and allow everything.

Mark Sapiro <msapiro at value.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