Traceback (most recent call last): File "/var/local/allura/Allura/allura/tasks/mail_tasks.py", line 64, in route_email msg = mail_util.parse_message(data) File "/var/local/allura/Allura/allura/lib/mail_util.py", line 159, in parse_message result['payload'] = result['payload'].decode(charset) File "/var/local/env-allura/lib64/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode characters in position 289-367: ordinal not in range(128)
Also this error can occur, would be nice to avoid even though its being handled:
03:30:18,297 ERROR [taskd:allura.tasks.mail_tasks.route_email:5cecab48e8ba7c205771f9d2:allura.lib.spam] Error calling exceptionless(check)(args=(u'Thanks for your reply. The problem came from....... ....... ....... Traceback (most recent call last): File "/var/local/allura/Allura/allura/lib/helpers.py", line 1064, in inner return fun(*args, **kwargs) File "/var/local/allura/Allura/allura/lib/spam/stopforumspamfilter.py", line 60, in check ip_int = int(ipaddress.ip_address(unicode(ip))) File "/var/local/env-allura/lib/python2.7/site-packages/ipaddress-1.0.22-py2.7.egg/ipaddress.py", line 168, in ip_address address) ValueError: u'None' does not appear to be an IPv4 or IPv6 address
Diff:
db/8289
Merged.
Needs another matching fix for multipart. Done on branch db/8289b
Merged