Fork me on GitHub
Subscribe 1

Ticket #410 (fixed bug)

Add linewrapping support for emails

  • Created: 2011-04-18 13:12:30
  • Reported by: Reines
  • Assigned to: Reines
  • Milestone: 2.0-alpha2
  • Component: email
  • Priority: normal

The SMTP protocol sets a max line width for emails - we need to make sure any lines which exceed this are automatically wrapped in the Email class.


Reines 2011-04-21 23:20:20

Just as a note, this isn't as simple as using the wordwrap function, as it messes up multibyte characters. There are a few UTF-8 compliant ones floating around, such as this.

Should we add this to the utf8 library and make the mailer library depend on the utf8 library? It would make sense and allow us to replace the regular expression to check for UTF-8 characters with the correct method from the library.

Reines 2011-04-22 10:17:24

  • Status changed from open to fixed.