You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My quarantine is currently impacted by this issue. I have my system configured to email me the errors, so the additional information I can provide is:
Exception Location: /home/modoboa/env/lib/python3.5/site-packages/modoboa_amavis/templatetags/amavis_tags.py in msgtype_to_html, line 140
There is a message in my quarantine which has a type of '?' which appears to be causing this problem. The actual complaint is "BAD HEADER SECTION Improper folded header field made up entirely of whitespace (char 20 hex): Subject: [...]" so it should be an 'H'. I'm not sure why it's a ?, but it'd be great if Modoboa handled it a bit more gracefully.
I tweaked mine to return the raw msgtype on line 140 instead of trying to format it nicely.
def msgtype_to_html(msgtype):
"""Transform a message type to a bootstrap label."""
color = constants.MESSAGE_TYPE_COLORS.get(msgtype, "default")
return mark_safe(
"<span class=\"label label-{}\" title=\"{}\">{}</span>".format(
color, constants.MESSAGE_TYPES[msgtype], msgtype))
so this is the problematic line i guess.
What is the way to fix this?
when the page is shown and a where normally the list with the emails is displayed an internal error appears
enabling debug shows this
The text was updated successfully, but these errors were encountered: