Unicode errors in mailman3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
High
|
Barry Warsaw |
Bug Description
This is with mailman3. I'm getting the following unicode errors:
Feb 20 23:07:43 2013 (13496) Uncaught runner exception: Expected unicode, found <type 'str'>: '<email address hidden>'
Feb 20 23:07:43 2013 (13496) Traceback (most recent call last):
File "/srv/dev/
self.
File "/srv/dev/
keepqueued = self._dispose(
File "/srv/dev/
self.
File "/srv/dev/
refused = agent.deliver(
File "/srv/dev/
member = mlist.members.
File "/srv/dev/
return function(args[0], config.db.store, *args[1:], **kws)
File "/srv/dev/
Address.email == address,
File "/srv/dev/
other = getattr(self, "variable_factory", Variable)
File "/srv/dev/
% (type(value), value))
TypeError: Expected unicode, found <type 'str'>: '<email address hidden>'
Feb 20 23:07:43 2013 (13496) SHUNTING: 1361401663.
-----------------
Feb 20 22:20:45 2013 (13337) Uncaught runner exception: decoding Unicode is not supported
Feb 20 22:20:45 2013 (13337) Traceback (most recent call last):
File "/srv/dev/
self.
File "/srv/dev/
keepqueued = self._dispose(
File "/srv/dev/
rfc1153_
File "/srv/dev/
payload = unicode(payload, 'us-ascii', 'replace')
TypeError: decoding Unicode is not supported
Feb 20 22:20:45 2013 (13337) SHUNTING: 1361398845.
Feb 20 22:20:52 2013 (13337) Uncaught runner exception: decoding Unicode is not supported
Feb 20 22:20:52 2013 (13337) Traceback (most recent call last):
File "/srv/dev/
self.
File "/srv/dev/
keepqueued = self._dispose(
File "/srv/dev/
rfc1153_
File "/srv/dev/
payload = unicode(payload, 'us-ascii', 'replace')
TypeError: decoding Unicode is not supported
Feb 20 22:20:52 2013 (13337) SHUNTING: 1361398852.
The attached patch fixes both tracebacks.
Related branches
- Barry Warsaw: Approve
-
Diff: 151 lines (+115/-2)4 files modifiedsrc/mailman/handlers/owner_recipients.py (+1/-1)
src/mailman/handlers/tests/test_recipients.py (+17/-0)
src/mailman/runners/digest.py (+1/-1)
src/mailman/runners/tests/test_digest.py (+96/-0)
Changed in mailman: | |
milestone: | none → 3.0.0b5 |
assignee: | nobody → Barry Warsaw (barry) |
importance: | Undecided → High |
status: | New → Fix Committed |
Changed in mailman: | |
status: | Fix Committed → Fix Released |
Can you provide a reproducible recipe, or test case? Is this caused by a member with non-ASCII in their name? Or a message with non-ASCII in the From field? Any more information about how to reproduce this will really help (e.g. to create a test case).