Improve word-wrapping of e-mails #191

Open
opened 2019-01-16 13:01:54 +00:00 by matthijskooijman · 0 comments
matthijskooijman commented 2019-01-16 13:01:54 +00:00 (Migrated from github.com)

#188 adds word-wrapping for outgoing emails. This is a simple wordwrap of the HTML text, to prevent getting lines over 998 chars in length. However, this wordwrapping might not be perfect in all cases (in particular multi-byte utf8 might cause problems, it seems).

It would be good to improve this wordwrapping. Perhaps DomDocument can be used to generate shorter lines to begin with (and it should know where it is safe to wrap), or perhaps there is a way to wrap lines in an e-mail without affecting the content (e.g. escaping the newlines so these are removed again when decoding/viewing the e-mail)? Alternatively, the current wrapping method could be made more robust.

#188 adds word-wrapping for outgoing emails. This is a simple wordwrap of the HTML text, to prevent getting lines over 998 chars in length. However, this wordwrapping might not be perfect in all cases (in particular multi-byte utf8 might cause problems, it seems). It would be good to improve this wordwrapping. Perhaps DomDocument can be used to generate shorter lines to begin with (and it should know where it is safe to wrap), or perhaps there is a way to wrap lines in an e-mail without affecting the content (e.g. escaping the newlines so these are removed again when decoding/viewing the e-mail)? Alternatively, the current wrapping method could be made more robust.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
harmen/hypha#191
No description provided.