[Mailman-Users] Content-Transfer-Encoding: not workng as expected.

Mark Sapiro mark at msapiro.net
Fri Nov 15 18:58:47 CET 2013

On 11/15/2013 06:11 AM, Roel Wagenaar wrote:
> I have adde your lines right after "import re", and almost instantly get the
> "We hit a bug" message in the web interface.
> I have attached an extract from mailmans error log, hope the list will allow
> it.
> The error message is:
> admin(3051):     from Mailman.Handlers.Decorate import decorate
> admin(3051):   File "/var/lib/mailman/Mailman/Handlers/Decorate.py", line
> 23, in <module>
> admin(3051):     email.charset.CHARSETS['utf-8'] = (SHORTEST,  None,
> 'utf-8')
> admin(3051): NameError: name 'SHORTEST' is not defined

My bad :(

either of the following should work:

import email.charset
email.charset.CHARSETS['utf-8'] = (email.charset.SHORTEST,  None, 'utf-8')


from email.charset import CHARSETS, SHORTEST
CHARSETS['utf-8'] = (SHORTEST,  None, 'utf-8')

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