![](https://secure.gravatar.com/avatar/02cc25ec5c6cd5c6a65a6d94817fe815.jpg?s=120&d=mm&r=g)
Hi all
Mailing list running in Mailman 2.1.39 / cPanel.
The digest option seems not to work. Users are complaining that they don’t receive the daily digests, and trying to send a digest manually with "send_digest_now" results in the following error message:
Bug in Mailman version 2.1.39
We're sorry, we hit a bug!
Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs or the web server logs.
Any idea what we could do here?
Thank you, Christian
-- Christian Buser, Hohle Gasse 6, CH-5507 Mellingen (Switzerland)
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 8/31/24 06:30, Christian Buser via Mailman-Users wrote:
Find the error and traceback in Mailman's error
log. See
https://wiki.list.org/DOC/Mailman%20and%20CPanel for more information.
If you don't have enough access to see the logs, you will have to get help from your cPanel host.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 9/8/24 20:56, Mark Sapiro wrote:
Find the error and traceback in Mailman's
error
log. See https://wiki.list.org/DOC/Mailman%20and%20CPanel for more information.
The log I received contains tracebacks like
admin(24054): Traceback (most recent call last):
admin(24054): File
"/usr/local/cpanel/base/3rdparty/mailman/scripts/driver", line 117, in
run_main
admin(24054): main()
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/admin.py", line 223, in main
admin(24054): change_options(mlist, category, subcat, cgidata, doc)
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/admin.py", line 1474, in
change_options
admin(24054): gui.handleForm(mlist, category, subcat, cgidata, doc)
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Gui/GUIBase.py", line 181,
in handleForm
admin(24054): self._setValue(mlist, property, val, doc)
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Gui/Digest.py", line 148, in
_setValue
admin(24054): status = mlist.send_digest_now()
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Digester.py", line 60, in
send_digest_now
admin(24054): ToDigest.send_digests(self, mboxfp)
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/ToDigest.py", line
157, in send_digests
admin(24054): send_i18n_digests(mlist, mboxfp)
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/ToDigest.py", line
258, in send_i18n_digests
admin(24054): addresses =
getaddresses([Utils.oneline(msg.get('from', ''), lcset)])
admin(24054): File "/usr/lib64/python2.7/email/utils.py", line 168, in
getaddresses
admin(24054): fieldvalues = [unicode(v) for v in fieldvalues]
admin(24054): UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4
in position 8: ordinal not in range(128)
The issue is this is an English language list with the list's charset = ascii and there is a message in the digest mbox with a non-ascii display name in its From: header.
In cPanel the digest mbox is at /usr/local/cpanel/3rdparty/mailman/lists/<LISTNAME>/digest.mbox - you need to edit that file and remove ant non-ascii from From: headers.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/02cc25ec5c6cd5c6a65a6d94817fe815.jpg?s=120&d=mm&r=g)
Hi Mark
Thank you for the analysis. I was about to send you the log just when I saw your response.
I’ll let the provider know about your answer, but I have an additional question here.
The list’s language on that cPanel page is set to German (preferred_language), available_languages are set to German, French and English. Should that not also cover non-ascii charcters in the „From:“-header?
Thank you, Christian
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 9/10/24 01:08, Christian Buser via Mailman-Users wrote:
I’ll let the provider know about your answer, but I have an additional question here.
The list’s language on that cPanel page is set to German (preferred_language), available_languages are set to German, French and English. Should that not also cover non-ascii charcters in the „From:“-header?
I'm not sure about cPanel, but in MM 2.1.39 as distributed by the GNU Mailman project, if the list's preferred language is German, its character set is iso-8859-1, so I don't know what the issue is.
The above is where the error occurs, but this is apparently an older version of Python. The code in email/utils.py in Python 2.7.18 contains nothing like
fieldvalues = [unicode(v) for v in fieldvalues]
In any case, the byte 0xe4in iso-8859-1 is 'ä'
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 8/31/24 06:30, Christian Buser via Mailman-Users wrote:
Find the error and traceback in Mailman's error
log. See
https://wiki.list.org/DOC/Mailman%20and%20CPanel for more information.
If you don't have enough access to see the logs, you will have to get help from your cPanel host.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 9/8/24 20:56, Mark Sapiro wrote:
Find the error and traceback in Mailman's
error
log. See https://wiki.list.org/DOC/Mailman%20and%20CPanel for more information.
The log I received contains tracebacks like
admin(24054): Traceback (most recent call last):
admin(24054): File
"/usr/local/cpanel/base/3rdparty/mailman/scripts/driver", line 117, in
run_main
admin(24054): main()
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/admin.py", line 223, in main
admin(24054): change_options(mlist, category, subcat, cgidata, doc)
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/admin.py", line 1474, in
change_options
admin(24054): gui.handleForm(mlist, category, subcat, cgidata, doc)
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Gui/GUIBase.py", line 181,
in handleForm
admin(24054): self._setValue(mlist, property, val, doc)
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Gui/Digest.py", line 148, in
_setValue
admin(24054): status = mlist.send_digest_now()
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Digester.py", line 60, in
send_digest_now
admin(24054): ToDigest.send_digests(self, mboxfp)
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/ToDigest.py", line
157, in send_digests
admin(24054): send_i18n_digests(mlist, mboxfp)
admin(24054): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/ToDigest.py", line
258, in send_i18n_digests
admin(24054): addresses =
getaddresses([Utils.oneline(msg.get('from', ''), lcset)])
admin(24054): File "/usr/lib64/python2.7/email/utils.py", line 168, in
getaddresses
admin(24054): fieldvalues = [unicode(v) for v in fieldvalues]
admin(24054): UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4
in position 8: ordinal not in range(128)
The issue is this is an English language list with the list's charset = ascii and there is a message in the digest mbox with a non-ascii display name in its From: header.
In cPanel the digest mbox is at /usr/local/cpanel/3rdparty/mailman/lists/<LISTNAME>/digest.mbox - you need to edit that file and remove ant non-ascii from From: headers.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/02cc25ec5c6cd5c6a65a6d94817fe815.jpg?s=120&d=mm&r=g)
Hi Mark
Thank you for the analysis. I was about to send you the log just when I saw your response.
I’ll let the provider know about your answer, but I have an additional question here.
The list’s language on that cPanel page is set to German (preferred_language), available_languages are set to German, French and English. Should that not also cover non-ascii charcters in the „From:“-header?
Thank you, Christian
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 9/10/24 01:08, Christian Buser via Mailman-Users wrote:
I’ll let the provider know about your answer, but I have an additional question here.
The list’s language on that cPanel page is set to German (preferred_language), available_languages are set to German, French and English. Should that not also cover non-ascii charcters in the „From:“-header?
I'm not sure about cPanel, but in MM 2.1.39 as distributed by the GNU Mailman project, if the list's preferred language is German, its character set is iso-8859-1, so I don't know what the issue is.
The above is where the error occurs, but this is apparently an older version of Python. The code in email/utils.py in Python 2.7.18 contains nothing like
fieldvalues = [unicode(v) for v in fieldvalues]
In any case, the byte 0xe4in iso-8859-1 is 'ä'
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Christian Buser
-
Mark Sapiro