Render message body as text when message is text/plain or is not text/html

Issue #29 new
Matt Creenan created an issue

If an email is sent with Content-type text/plain, mailroom will display the message body as-is.

If this message body contains XML, this makes the message body unreadable, as the browser treats it as HTML.

It would be nice if text/plain emails would get rendered differently:

  1. Encode html entities (< as <, > as >, etc.)
  2. Convert new lines to <br /> tags OR wrap the message body with <pre> OR style the message body to render whitespace as-is
  3. Convert multiple subsequence space characters to   OR wrap the message body with <pre> OR style the message body to render whitespace as-is

Comments (4)

  1. Florian W.

    All text emails recieved are not rendered correctly yet - especially line breaks are ignored, this makes it very hard to read the emails by mailroom!

  2. Log in to comment