[ mailman-Bugs-789897 ] Shunt clogged up - RFC2231 unicode problem?
SourceForge.net
noreply at sourceforge.net
Mon Aug 18 22:06:01 EDT 2003
Bugs item #789897, was opened at 2003-08-16 17:31
Message generated for change (Comment added) made by bwarsaw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=789897&group_id=103
Category: mail delivery
Group: 2.1 (stable)
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Colin Allen (ventoux)
Assigned to: Nobody/Anonymous (nobody)
Summary: Shunt clogged up - RFC2231 unicode problem?
Initial Comment:
Dozens of messages are backed up in my shunt directory
with the message "TypeError: unicode() argument 2 must
be string, not None" (full traceback example below).
This seems very similar to a problem fixed by ber with 2.0.x
earlier this year but I'm running 2.1.2 (on FreeBSD). I tried
my best to apply a similar solution to Message.py but
apparently I don't know enough about python to make it
work.
Here's a typical Traceback --
Aug 16 16:08:25 2003 (46338) Uncaught runner
exception: unicode() argument 2 must be string, not None
Aug 16 16:08:25 2003 (46338) Traceback (most recent
call last):
File "/usr/local/mailman/Mailman/Queue/Runner.py", line
105, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/Runner.py", line
155, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/
IncomingRunner.py", line 130, in _dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
File "/usr/local/mailman/Mailman/Queue/
IncomingRunner.py", line 153, in _dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/Handlers/ToDigest.py",
line 89, in process
send_digests(mlist, mboxfp)
File "/usr/local/mailman/Mailman/Handlers/ToDigest.py",
line 130, in send_digests
send_i18n_digests(mlist, mboxfp)
File "/usr/local/mailman/Mailman/Handlers/ToDigest.py",
line 303, in send_i18n_digests
msg = scrubber(mlist, msg)
File "/usr/local/mailman/Mailman/Handlers/Scrubber.py",
line 257, in process
url = save_attachment(mlist, part, dir)
File "/usr/local/mailman/Mailman/Handlers/Scrubber.py",
line 348, in save_attachment
fnext = os.path.splitext(msg.get_filename(''))[1]
File "/usr/local/mailman/pythonlib/email/Message.py", line
707, in get_filename
return unicode(newvalue[2], newvalue[0])
TypeError: unicode() argument 2 must be string, not None
----------------------------------------------------------------------
>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-08-19 00:06
Message:
Logged In: YES
user_id=12800
This was caused by a bug in the email package. It'll be
fixed in email 2.5.4 and in Mailman 2.1.3.
----------------------------------------------------------------------
Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-08-18 21:11
Message:
Logged In: YES
user_id=12800
A better thing to do is to attach a .pck/.db pair of files
for a shunted message. Then I can run it through my system
and hopefully reproduce the bug.
If the message contains sensitive information or you don't
want to upload it for other reasons, please email them as
attachments to me: barry at python.org. Make sure you put
"Mailman" in the subject.
----------------------------------------------------------------------
Comment By: Colin Allen (ventoux)
Date: 2003-08-16 17:43
Message:
Logged In: YES
user_id=846026
ps - moving the various digest.mboxes freed up the blocked lists -
too many messages with attachments in the digests for me to
figure out exactly which one was causing the problem, but I'll be
happy to forward copy of offending mbox to anyone interested.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=789897&group_id=103
More information about the Mailman-coders
mailing list