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 <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp