spams get shunted in CommandRunner

Bug #266038 reported by Tokio Kikuchi
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Unassigned

Bug Description

If a spam which is directed to -request address has
non-ascii subject, it is shunted by UnicodeError and
the shunt directory will become full of such spams.
I attach a patch to solve this by simply ignore this
error.

Here is the symptom in logs/error

Mar 04 02:42:42 2004 (49945) Uncaught runner
exception: ASCII decoding error: ordinal not in
range(128)
Mar 04 02:42:42 2004 (49945) Traceback (most recent
call last):
  File "/usr/local/mailman/Mailman/Queue/Runner.py",
line 113, in _oneloop
    self._onefile(msg, msgdata)
  File "/usr/local/mailman/Mailman/Queue/Runner.py",
line 163, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File
"/usr/local/mailman/Mailman/Queue/CommandRunner.py",
line 223, in _dispose
    res = Results(mlist, msg, msgdata)
  File
"/usr/local/mailman/Mailman/Queue/CommandRunner.py",
line 77, in __init__
    subj =
make_header(decode_header(subj)).__unicode__()
  File
"/usr/local/mailman/pythonlib/email/Header.py", line
144, in make_header
    h.append(s, charset)
  File
"/usr/local/mailman/pythonlib/email/Header.py", line
272, in append
    ustr = unicode(s, incodec, errors)
UnicodeError: ASCII decoding error: ordinal not in
range(128)

Mar 04 02:42:42 2004 (49945) SHUNTING:
1078335762.1569669+8f2d3dab0e864eb48672a4
eb8d4d0cae8f56c595

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

Revision history for this message
Tokio Kikuchi (tkikuchi) wrote :
Revision history for this message
Tokio Kikuchi (tkikuchi) wrote :

Closing because of double post.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.