#8241 SMTP maximum allowed line length

v1.10.0
closed
None
General
nobody
2018-10-30
2018-10-03
No

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

Discussion

  • Dave Brondsema

    Dave Brondsema - 2018-10-04
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2018-10-04

    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.

     
  • Kenton Taylor

    Kenton Taylor - 2018-10-08
    • status: review --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2018-10-30
    • Milestone: unreleased --> v1.10.0
     

Log in to post a comment.