[Mailman-Users] attachments

Mark Sapiro mark at msapiro.net
Thu Apr 17 02:25:48 CEST 2008

Con Wieland wrote:
>On Apr 15, 2008, at 4:07 PM, Mark Sapiro wrote:
>> If you want to accept any text/plain parts from the message or an
>> attached (forwarded as attachment) message and likewise for PDFs and
>> not accept anything else, set filter_mime_types empty and
>> pass_mime_types to
>> multipart
>> message/rfc822
>> text/plain
>> application/pdf
>I must be missing something here because as soon as I turn on content  
>filtering no matter what I try in pass_mime_types (with above) or  
>filter_mime_types, I lose everything but the text

It is possible that the user's MUA that sends the pdf attachment
doesn't properly identify its content-type as application/pdf. If that
is the case, and you can't convince the user to use an intelligent
MUA, you have to accept whatever content-type that MUA is assigning to
the attachment (maybe application/octet-stream - aargh...) and then
hope you can filter all the garbage without adverse impact by putting
say pdf and txt in pass_filename_extensions.

First, you have to see a raw message from the user with an attached pdf
and see what the part headers are.

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