FAQ
Hi All:

Hope everyone is having a nice summer.

Yesterday I had a UK client have two messages from two different posters
shunted for the following reason:

Jul 19 05:24:03 2010 (28056) Uncaught runner exception: windows-1252
Jul 19 05:24:03 2010 (28056) Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line
120, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line
191, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/OutgoingRunner.py",
line 74, in _dispose
self._func(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/SMTPDirect.py",
line 132, in process
Decorate.process(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/Decorate.py",
line 133, in process
msg.set_payload(payload, newcset)
File "/usr/local/lib/python2.4/email/Message.py", line 218, in set_payload
self.set_charset(charset)
File "/usr/local/lib/python2.4/email/Message.py", line 242, in set_charset
raise TypeError(charset)
TypeError: windows-1252

Jul 19 05:46:50 2010 (28056) Uncaught runner exception: iso-8859-1
Jul 19 05:46:50 2010 (28056) Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line
120, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line
191, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/OutgoingRunner.py",
line 74, in _dispose
self._func(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/SMTPDirect.py",
line 132, in process
Decorate.process(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/Decorate.py",
line 133, in process
msg.set_payload(payload, newcset)
File "/usr/local/lib/python2.4/email/Message.py", line 218, in set_payload
self.set_charset(charset)
File "/usr/local/lib/python2.4/email/Message.py", line 242, in set_charset
raise TypeError(charset)
TypeError: iso-8859-1

Looking at the error log, the above type of error message is VERY rare
however it is strange that I had two of these show up within a close time of
each other. The question that I have is does the above error message
indicate a problem going on with the mailman server or was there an issue
going on with the posters' email formatting?

Thanks for any insight into this problem.

Regards,
Brian Carpenter
EMWD.com

--------------------------------------------------------
http://blog.emwd.com/
Curious comments from a web hosting techie

Search Discussions

  • Mark Sapiro at Jul 20, 2010 at 2:44 pm

    Brian Carpenter wrote:
    Yesterday I had a UK client have two messages from two different posters
    shunted for the following reason:

    Jul 19 05:24:03 2010 (28056) Uncaught runner exception: windows-1252
    Jul 19 05:24:03 2010 (28056) Traceback (most recent call last):
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line
    120, in _oneloop
    self._onefile(msg, msgdata)
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line
    191, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/OutgoingRunner.py",
    line 74, in _dispose
    self._func(mlist, msg, msgdata)
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/SMTPDirect.py",
    line 132, in process
    Decorate.process(mlist, msg, msgdata)
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/Decorate.py",
    line 133, in process
    msg.set_payload(payload, newcset)
    File "/usr/local/lib/python2.4/email/Message.py", line 218, in set_payload
    self.set_charset(charset)
    File "/usr/local/lib/python2.4/email/Message.py", line 242, in set_charset
    raise TypeError(charset)
    TypeError: windows-1252 [...]
    Looking at the error log, the above type of error message is VERY rare
    however it is strange that I had two of these show up within a close time of
    each other. The question that I have is does the above error message
    indicate a problem going on with the mailman server or was there an issue
    going on with the posters' email formatting?

    There is a bug in certain versions of the Python email package. This
    TypeError occurs because in the call to set_charset, the argument in
    this case is a unicode u'windows-1252' instead of a string
    'windows-1252'.

    See the bug report at <https://bugs.launchpad.net/mailman/+bug/328353>,
    particularly the patch at comment #11 which I think will fix this.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedJul 20, '10 at 10:46a
activeJul 20, '10 at 2:44p
posts2
users2
websitelist.org

2 users in discussion

Mark Sapiro: 1 post Brian Carpenter: 1 post

People

Translate

site design / logo © 2022 Grokbase