[ mailman-Bugs-797232 ] senddigests can crash

SourceForge.net noreply at sourceforge.net
Mon Dec 1 10:14:48 EST 2003


Bugs item #797232, was opened at 2003-08-29 07:53
Message generated for change (Settings changed) made by bwarsaw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=797232&group_id=103

Category: mail delivery
Group: 2.1 (stable)
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Sjoerd Mullender (sjoerd)
Assigned to: Nobody/Anonymous (nobody)
Summary: senddigests can crash

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-12-01 10:14

Message:
Logged In: YES 
user_id=12800

Duplicate of already closed 834486

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=797232&group_id=103



More information about the Mailman-coders mailing list