[Mailman-Users] Messages shunted with "TypeError: decoding Unicodeis not supported"

Mark Sapiro mark at msapiro.net
Mon Oct 27 18:45:35 CET 2008


Josh Clark wrote:
>
>I'm having trouble sending a message from one of my lists using  
>Mailman 2.1.11. The message itself is entirely ascii and sent with the  
>US-ASCII charset, but it's failing with a "unicode is not supported"  
>error. My (extremely unsophisticated) reading of the error log leads  
>me to believe that the problem ise happening when the footer is  
>applied to the message, but the footer text is also ascii.
>
>Any ideas or suggestions would be much appreciated!
>
> From the error log:
>
>Oct 27 05:15:16 2008 (2734) Uncaught runner exception: decoding  
>Unicode is not supported
>Oct 27 05:15:16 2008 (2734) Traceback (most recent call last):
>   File "/usr/local/mailman/Mailman/Queue/Runner.py", line 120, in  
>_oneloop
>     self._onefile(msg, msgdata)
>   File "/usr/local/mailman/Mailman/Queue/Runner.py", line 191, in  
>_onefile
>     keepqueued = self._dispose(mlist, msg, msgdata)
>   File "/usr/local/mailman/Mailman/Queue/OutgoingRunner.py", line 74,  
>in _dispose
>     self._func(mlist, msg, msgdata)
>   File "/usr/local/mailman/Mailman/Handlers/SMTPDirect.py", line 159,  
>in process
>     deliveryfunc(mlist, msg, msgdata, envsender, refused, conn)
>   File "/usr/local/mailman/Mailman/Handlers/SMTPDirect.py", line 292,  
>in verpdeliver
>     Decorate.process(mlist, msgcopy, msgdata)
>   File "/usr/local/mailman/Mailman/Handlers/Decorate.py", line 102,  
>in process
>     ufooter = unicode(footer, lcset, 'ignore')
>TypeError: decoding Unicode is not supported
>
>Oct 27 05:15:16 2008 (2734) SHUNTING:  
>1225102514.5674801+43301f942e02e78abe431e7148223e1c0165fe58


Is your Mailman/Handlers/Decorate.py unmodified?

What is happening is we are attempting to convert the footer which is
the result of interpolating the %(...)s replacements into msg_footer
into a unicode string, but it is already a unicode string.

It is unclear to me how this is happening.

What do you see as the value of msg_footer from the output of

 bin/config_list -o - listname | grep -A10 msg_footer

Does it begin with u""" ?

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