FAQ
Hi,

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


Many thanks for your help. All best,
Josh

Search Discussions

  • Mark Sapiro at Oct 27, 2008 at 5:45 pm

    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
  • Josh Clark at Oct 27, 2008 at 6:01 pm
    Hi Mark,

    Many thanks for your help.
    Is your Mailman/Handlers/Decorate.py unmodified?
    This is an unmodified installation.
    What do you see as the value of msg_footer from the output of
    bin/config_list -o - listname | grep -A10 msg_footer
    Here's what I get:

    $ bin/config_list -o - moxiemail | grep -A10 msg_footer
    msg_footer = """_______________________________________________
    You are subscribed to this mailing list as %(user_address)s
    To edit your subscription options or to unsubscribe, visit:
    %(user_optionsurl)s"""

    # When you scrub attachments, they are stored in archive area and links
    # are made in the message so that the member can access via web browser.
    # If you want the attachments totally disappear, you can use content
    # filter options.
    #
    # legal values are:

    Also, I should have noted in my original messge that this installation
    was recently moved from another server, and I believe that my failed
    attempt is actually the first message that's being sent to the list
    through the new setup (it's used as a broadcast newsletter list, not
    as a discussion list).

    In case this is relevant, the original server was running a previous
    version of 2.1.x (not sure which version precisely, sorry). I
    installed 2.1.11 on the new server and then copied the contents of
    lists and archives/private from the old to the new, running "bin/
    check_perms -f" afterward.

    Thanks again for helping to troubleshoot this issue, it's much
    appreciated.

    All best,
    Josh

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedOct 27, '08 at 10:29a
activeOct 27, '08 at 6:01p
posts3
users2
websitelist.org

2 users in discussion

Josh Clark: 2 posts Mark Sapiro: 1 post

People

Translate

site design / logo © 2022 Grokbase