senddigests can crash

Bug #265960 reported by Sjoerd-users
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Invalid
Medium
Unassigned

Bug Description

In certain circumstances the senddigests cron job can
crash. Here is the traceback:

Traceback (most recent call last):
  File "/var/mailman/cron/senddigests", line 94, in ?
    main()
  File "/var/mailman/cron/senddigests", line 86, in main
    mlist.send_digest_now()
  File "/var/mailman/Mailman/Digester.py", line 60, in
send_digest_now
    ToDigest.send_digests(self, mboxfp)
  File "/var/mailman/Mailman/Handlers/ToDigest.py",
line 130, in send_digests
    send_i18n_digests(mlist, mboxfp)
  File "/var/mailman/Mailman/Handlers/ToDigest.py",
line 303, in send_i18n_digests
    msg = scrubber(mlist, msg)
  File "/var/mailman/Mailman/Handlers/Scrubber.py",
line 308, in process
    t = t.encode(charset, 'replace')
  File
"/ufs/sjoerd/src/Python/dist/src/Lib/encodings/__init__.py",
line 69, in search_function
    globals(), locals(), _import_tail)
ValueError: Empty module name

The reason of the crash is that charset in the call to
t.encode is the empty string. Why it is that, I don't
know, and I don't have the email message that triggered
it. But apparently it's possible, so should be
protected against.

This is with Python 2.3 and current CVS.

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

Revision history for this message
Barry Warsaw (barry) wrote :

Duplicate of already closed 834486

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.