With some mail servers, very long email lines cause errors:
File "/var/local/allura/Allura/allura/tasks/mail_tasks.py", line 198, in sendmail
in_reply_to, multi_msg, sender=sender, references=references)
File "/var/local/allura/Allura/allura/lib/mail_util.py", line 267, in sendmail
content)
File "/usr/lib64/python2.7/smtplib.py", line 750, in sendmail
raise SMTPDataError(code, resp)
SMTPDataError: (550, 'maximum allowed line length is 998 octets, got 1136')
http://www.jebriggs.com/blog/2010/07/smtp-maximum-line-lengths/ confirms line length limits, and recommends quoted-printable as a workaround, which I have seen elsewhere also. https://en.wikipedia.org/wiki/Quoted-printable
Fixed in db/8241
In addition to the unit test, you can test with any sort of email notification having very very long lines in it. Make sure it renders correctly in a mail client.