[Mailman-Users] MM-2.1.2 shunting of message with unicode error

Mark T. Valites valites at geneseo.edu
Wed Mar 31 22:47:40 CEST 2004


Hi all - been a long time since I've been a member of, much less posted to
the list.

Since going to 2.1.2 this past summer, I haven't had a single problem with
it. I'm running it on Solaris 8, with python-2.2. I've also got James
Henstridge's spamassassin patch integrated into the setup.

I'm currently having a problem with one single list out of the 500 I
currently have here at my site. I had this same exact problem a couple
weeks ago with the very same list, but removing all traces of and then
recreating the list seemed to at take care of the problem until this week.
Right now, when one of the list members (who just happens to be my
department head...) posts to the list, her posts get thrown into the shunt
directory.  From the errors, I suspected that there was a problem with
MIME encoding of the message or attachment, but the shunting also occurs
when I sent a message with no attachment in plain ascii text
(charset=US-ASCII).

Attempting to unshunt them results in the following error:


Mar 30 09:58:47 2004 (492) Uncaught runner exception: unicode() argument 2
must be string, not None
Mar 30 09:58:47 2004 (492) Traceback (most recent call last):
  File "/usr/local/mailman-2.1.2/Mailman/Queue/Runner.py", line 105, in
_oneloop
    self._onefile(msg, msgdata)
  File "/usr/local/mailman-2.1.2/Mailman/Queue/Runner.py", line 155, in
_onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/usr/local/mailman-2.1.2/Mailman/Queue/IncomingRunner.py", line
130, in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/usr/local/mailman-2.1.2/Mailman/Queue/IncomingRunner.py", line
153, in _dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/usr/local/mailman-2.1.2/Mailman/Handlers/ToDigest.py", line 89,
in process
    send_digests(mlist, mboxfp)
  File "/usr/local/mailman-2.1.2/Mailman/Handlers/ToDigest.py", line 130,
in send_digests
    send_i18n_digests(mlist, mboxfp)
  File "/usr/local/mailman-2.1.2/Mailman/Handlers/ToDigest.py", line 303,
in send_i18n_digests
    msg = scrubber(mlist, msg)
  File "/usr/local/mailman-2.1.2/Mailman/Handlers/Scrubber.py", line 257,
in process
    url = save_attachment(mlist, part, dir)
  File "/usr/local/mailman-2.1.2/Mailman/Handlers/Scrubber.py", line 348,
in save_attachment
    fnext = os.path.splitext(msg.get_filename(''))[1]
  File "/usr/local/mailman-2.1.2/pythonlib/email/Message.py", line 707, in
get_filename
    return unicode(newvalue[2], newvalue[0])
TypeError: unicode() argument 2 must be string, not None



Mar 30 09:58:47 2004 (492) SHUNTING:
1080245714.8998311+831a776c645dd047b03c0ff638f6ad34259c3d9a
Mar 30 09:58:55 2004 (492) Uncaught runner exception: unicode() argument 2
must be string, not None
Mar 30 09:58:55 2004 (492) Traceback (most recent call last):
  File "/usr/local/mailman-2.1.2/Mailman/Queue/Runner.py", line 105, in
_oneloop
    self._onefile(msg, msgdata)
  File "/usr/local/mailman-2.1.2/Mailman/Queue/Runner.py", line 155, in
_onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/usr/local/mailman-2.1.2/Mailman/Queue/IncomingRunner.py", line
130, in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/usr/local/mailman-2.1.2/Mailman/Queue/IncomingRunner.py", line
153, in _dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/usr/local/mailman-2.1.2/Mailman/Handlers/ToDigest.py", line 89,
in process
    send_digests(mlist, mboxfp)
  File "/usr/local/mailman-2.1.2/Mailman/Handlers/ToDigest.py", line 130,
in send_digests
    send_i18n_digests(mlist, mboxfp)
  File "/usr/local/mailman-2.1.2/Mailman/Handlers/ToDigest.py", line 303,
in send_i18n_digests
    msg = scrubber(mlist, msg)
  File "/usr/local/mailman-2.1.2/Mailman/Handlers/Scrubber.py", line 257,
in process
    url = save_attachment(mlist, part, dir)
  File "/usr/local/mailman-2.1.2/Mailman/Handlers/Scrubber.py", line 348,
in save_attachment
    fnext = os.path.splitext(msg.get_filename(''))[1]
  File "/usr/local/mailman-2.1.2/pythonlib/email/Message.py", line 707, in
get_filename
    return unicode(newvalue[2], newvalue[0])
TypeError: unicode() argument 2 must be string, not None

Mar 30 09:58:55 2004 (492) SHUNTING:
1080611446.4363999+d55aefdcc3b109eb386229538e349f8e747163a0


I've dug through the mailman-users archive and the bug tracker on
sourceforge, but couldn't find anything that looked exactly like what I'm
seeing. The closest I found was:

http://sourceforge.net/tracker/index.php?func=detail&aid=871050&group_id=103&atid=100103

And also bug 834486 mentioned in the Changelog for 2.1.3 looked similar
to, but not quite what I'm seeing.

And suggestion are appreciated.
-Mark

-- 
Mark T. Valites
Unix Systems Analyst
CIT - SUNY Geneseo
>--))> >--))>














More information about the Mailman-Users mailing list