[Mailman-Users] Formatting incoming mail in Mailman

Mark Sapiro mark at msapiro.net
Sat Feb 13 20:34:25 CET 2010


Hank van Cleef wrote:

>The esteemed Mark Sapiro has said:
>>
>> Presumably you are using pass_mime_types to remove the 'non-matching'
>> types. What's in pass_mime_types?
>
>(copied from the options page):
>mixed
>alternative
>text/plain
>text/html


The above is not correct. If you have a single word as a
pass_mime_types (or filter_mime_types) entry, it is the main type, not
the subtype. So, if you want to pass multipart/mixed and
multipart/alternative, that's what you need to put.

I recommend however just putting

multipart
text/plain
text/html

in pass_mime_types. These, together with collapse_alternatives = Yes
and convert_html_to_plaintext = Yes will ensure only plain text
reaches the list and will also accept the plain text from messages
that have a structure like

multipart/related
    multipart/alternative
        text/plain
        text/html
    image/xxx

which are produced by some Microsoft MUAs and possibly others. If you
don't pass multipart/related, that entire message will be filtered. If
you do pass all multipart and collapse alternatives, only the
text/plain part goes to the list.

Yow might also consider adding message/rfc822 to pass_mime_types if you
want to accept plain text or converted html from an attached message.

-- 
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