- **status**: in-progress --> review
- **Comment**:

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.



---

** [tickets:#8241] SMTP maximum allowed line length**

**Status:** review
**Milestone:** unreleased
**Created:** Wed Oct 03, 2018 06:50 PM UTC by Dave Brondsema
**Last Updated:** Wed Oct 03, 2018 06:50 PM UTC
**Owner:** Dave Brondsema


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


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Reply via email to