Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

[BUG] Direct Reply: content of HTML formatted emails are not displayed

Open localguru opened this issue 8 years ago • 5 comments

Description:

A HTML formatted Direct Reply email is not displayed in Rocket.Chat. The message is empty; the HTML content is eaten up. This is a kind of bizarre, because the offline email itself is created in HTML format and a lot of users create emails in HTML format by default. If those emails are eaten up, the feature is almost useless.

Same problem with attachments. Attachments are not support, as documented on

https://rocket.chat/docs/administrator-guides/email/direct-reply/

"Only text messages will be supported, attachments are not supported yet.". But to my mind this should not end up, in discarding the whole content of an email.

Currently - to my mind - the Direct Reply feature is completely buggy and a high risk in loosing messages as one can't handle in what format or way users reply to messages. I highly recommend to mark it as experimental.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.61.0, 0.69.2
  • Operating System: Linux Ubuntu 16.04 LTS
  • Deployment Method(snap/docker/tar/etc): self build bundle
  • Number of Running Instances: 1
  • DB Replicaset Oplog: yes
  • Node Version: 8.9.4

Steps to Reproduce:

  1. Direct Reply must be configured in Administration
  2. generate an "You have been direct messaged by" email by sending a direct message to an offline user
  3. the offline user answers with a HTML formatted email, e.g. a single line just marked bold.
  4. the content of that email is not displayed in Rocket.Chat, empty message content.

Expected behavior:

message must be displayed

Actual behavior:

message content is eaten up, message is empty.

bug

localguru avatar Feb 01 '18 12:02 localguru

Actually, only plain text emails are being parsed till now.. Its dependent on this library https://github.com/mko/emailreplyparser . Will look for better alternatives.

pkgodara avatar Mar 09 '18 18:03 pkgodara

Is it any way to customize the content of the email removing the message content?

AntMarras avatar Mar 22 '18 11:03 AntMarras

This is still an issue in 0.69.2. Umlauts in plain/text emails are broken; text/html emails are fully broken.

email

localguru avatar Sep 24 '18 12:09 localguru

Maybe this will help for accented characters https://github.com/mscdex/node-imap/issues/319

ramrami avatar May 16 '19 07:05 ramrami

Still valid this bug! Just using RC 3.0.3 with Client 2.17.7 and direct reply via plain mail has issues with ö ä ü and so on.

image

dg-otrs avatar Mar 17 '20 12:03 dg-otrs