Improve word-wrapping of e-mails #191
Labels
No labels
Component: User interface
Component: Wymeditor
Help wanted
Level: Difficult
Level: Easy
Level: Moderate
Pagetype: Festival
Pagetype: Mailinglist
Pagetype: Peer reviewed article
Pagetype: Text
Privacy GDPR AVG
status: has conflicts
Status: Needs changes
Status: Needs discussion
Status: Needs review
Status: Ready to merge
Status: Waiting for response
Type: Bug
Type: Enhancement
Type: Question
Usecase: De Stadsbron
Usecase: Koppelting
Usecase: MeetjeStad
Value: Coders
Value: Security
Value: Users
Value: Visitors
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
harmen/hypha#191
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#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.