Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
None
Description
When setting
grouper.properties, mail.smtp.grouperEmailContentType = text/html; charset=utf-8
The daily "Grouper report" email ( and likely other standard emails) no longer wrap lines properly.
Already has some "odd" logic trying to fix "line endings" based on the start of the body having "<HTML>", but it appears to be flawed / lacking.
Perhaps the behavior should be controlled only based on mail.smtp.grouperEmailContentType settings? ( if contains "text/html" then sub \r\n with "</br>" instead of looking at the starting string of the body? )
Or
Do a more formal encoding assuming inputs are always "plain text" and need to be HTML escaped?