David Andrews wrote:

>I got the below message from a user, and am not quite sure what to do?  Any 
>advice?
>
>>Date: Thu, 3 Aug 2006 00:30:29 -0600
>>From: "T. Joseph Carter" <[EMAIL PROTECTED]>
>>To: David Andrews <[EMAIL PROTECTED]>
>>Subject: HTML filter on the lists
>>
>>The filter you are using on text/html messages to the list really is very,
>>very broken.  First, it leaves parts of the HTML behind.  Second, it lies
>>about its output, claiming that all messages are now us-ascii (which
>>breaks character set conversion tools which need to know the original
>>character set in order to map to the correct one.)


Presumably the issue here is the conversion done by Content filtering
-> convert_html_to_plaintext. The simplest solution is just to set
this to 'No' and allow the HTML to go to the list unchanged, but you
may not want to allow 'non-defanged' HTML or any HTML at all on your
list.

Another solution is to remove text/html from the MIME types allowed on
your list and thus force your members to post plain text or at least
multipart/alternative. See <http://www.expita.com/nomime.html>.

If you want to continue to convert HTML to plaintext, there are a few
issues. You don't say what Mailman version this is, but from your
user's complaint, it seems it is pre-2.1.7. In versions prior to
2.1.7, HTML that was quoted-printable or base64 encoded was not
decoded prior to passing to HTML_TO_PLAIN_TEXT_COMMAND which caused
many problems. If this is the issue, you need to upgrade. Beyond that,
the default for HTML_TO_PLAIN_TEXT_COMMAND is '/usr/bin/lynx -dump
%(filename)s'. This may not be appropriate. Redefining this in
mm_cfg.py to the command suggested by your user may or may not be a
solution because of the way Mailman/Handlers/MimeDel.py resets the
converted payload

-- 
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&amp;file=faq01.027.htp

Reply via email to