[Mailman-Users] Need help with "content filtering"

Mark Sapiro msapiro at value.net
Fri Mar 4 23:54:18 CET 2005

Pete Holsberg wrote:

>I would like for members of the list I run to be able to 
>send HTML-encoded emails and any attachments except pictures.
>"Remove message attachments that have a matching content 
>type" contains:

I don't think this works. I.e. I don't think 'image' will match all
'image/*' content types. I think you have to enumerate all the
subtypes, but all image/ types will be removed by the rules below

>"Remove message attachments that don't have a matching 
>content type" contains:
>"Should Mailman convert text/html parts to plain text?" is NO

It looks like these settings should allow HTML, but they won't allow
non-image attachments that aren't text/plain or text/html. Your second
set allows only text/plain and text/html parts that are either the
only part or a sub-part at some level of multipart/mixed or
multipart/alternative parts. Also if a multipart/alternative part
contains both text/plain and text/html parts only the first part
(normally the text/plain part) will pass the filter.

>As a test I copied an HTML file that was open in Word (it 
>contained a single line), pasted it into Outlook (set for 
>HTML) and sent it to my list. I got the following repsonse:
>"The attached message matched the 
>4sam-4seasonsatmapleton.org mailing
>list's content filtering rules and was prevented from being 
>on to the list membership.  You are receiving the only 
>remaining copy
>of the discarded message."

It doesn't seem like this should have happened, but see below.

>One of the attachments contained this:
>BODY { MARGIN-TOP: 25px; FONT-SIZE: 10pt; MARGIN-LEFT: 25px; 
>Arial, Helvetica } P.msoNormal { MARGIN-TOP: 0px; FONT-SIZE: 
>10pt; MARGIN-LEFT: 0px;
>COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman" } 
>LI.msoNormal { MARGIN-TOP:
>0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; 
>FONT-FAMILY: Helvetica, "Times New
>Roman" }

The actual contents of a part are not relevant. The thing that counts
is the part's Content-Type: header.

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