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

Omnichannel email content is empty and does not show up in Chat

Open jwnga opened this issue 2 years ago • 6 comments

Description:

When sending emails to configured inbox. Email is converted to Chat message but content of email is not show in chat. There is no different if i will send html email or plain text email.

Steps to reproduce:

  1. Setup Email Inbox
  2. Send test email to configured inbox

Expected behavior:

I was expecting to see content of email that im sending.

Actual behavior:

Content of email is not visible

Server Setup Information:

  • Version of Rocket.Chat Server: 5.4.2
  • Operating System: Ubuntu 22.04.1 LTS
  • Deployment Method: docker (docker pull registry.rocket.chat/rocketchat/rocket.chat:latest)
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • Database Migration: 281 (01.02. 2023 18:24)
  • NodeJS Version: v14.19.3
  • MongoDB Version: 4.4.15 / wiredTiger (oplog Enabled)

Client Setup Information

  • Desktop App or Browser Version: Chrome, Edge
  • Operating System: Windows

Additional context

image

jwnga avatar Feb 01 '23 17:02 jwnga

+1

teach404W avatar Feb 03 '23 11:02 teach404W

+1

Rocket.Chat Version: 6.2.2 NodeJS Version: 14.21.3 - x64 MongoDB Version: 4.4.15 MongoDB Engine: wiredTiger Platform: linux

Potemkinkuliss avatar May 24 '23 15:05 Potemkinkuliss

+1

Rocket.Chat Version: 6.2.3 NodeJS Version: 14.21.3 - x64 MongoDB Version: 6.0.3
MongoDB Engine: wiredTiger
Platform: darwin

Vladlysenko75 avatar Jul 05 '23 15:07 Vladlysenko75

I don't know TS, so I have a hard time debugging this.

What I tried was setting up a dev instance develop and create an email inbox.

I put logger.info(JSON.stringify(email)); here.

It seems that email.text is undefined and email.html is false. So something in ParsedEmail or simpleparser seems to have changed.

The complete email object looks like this:

{
  "attachments": [],
  "headers": {},
  "headerLines": [
    {
      "key": "return-path",
      "line": "Return-Path: <[email protected]>"
    },
    {
      "key": "delivered-to",
      "line": "Delivered-To: [email protected]"
    },
    {
      "key": "received",
      "line": "Received: from mail.mailerdomain.com\r\n\tby mail.mailerdomain.com with LMTP\r\n\tid WchkFtQi5GUKCAAAkJPkPg\r\n\t(envelope-from <[email protected]>)\r\n\tfor <[email protected]>; Sun, 03 Mar 2024 08:12:20 +0100"
    },
    {
      "key": "x-original-to",
      "line": "X-Original-To: [email protected]"
    },
    {
      "key": "message-id",
      "line": "Message-ID: <[email protected]>"
    },
    {
      "key": "date",
      "line": "Date: Sun, 3 Mar 2024 08:12:18 +0100"
    },
    {
      "key": "mime-version",
      "line": "MIME-Version: 1.0"
    },
    {
      "key": "subject",
      "line": "Subject: Re: A New Hope"
    },
    {
      "key": "content-language",
      "line": "Content-Language: en-US"
    },
    {
      "key": "to",
      "line": "To: mailbox <[email protected]>"
    },
    {
      "key": "references",
      "line": "References: <[email protected]>\r\n <[email protected]>"
    },
    {
      "key": "from",
      "line": "From: user1 <[email protected]>"
    },
    {
      "key": "in-reply-to",
      "line": "In-Reply-To: <[email protected]>"
    },
    {
      "key": "content-type",
      "line": "Content-Type: text/plain; charset=UTF-8; format=flowed"
    },
    {
      "key": "content-transfer-encoding",
      "line": "Content-Transfer-Encoding: 7bit"
    }
  ],
  "subject": "Re: A New Hope",
  "references": [
    "<[email protected]>",
    "<[email protected]>"
  ],
  "date": "2024-03-03T07:12:18.000Z",
  "to": {
    "value": [
      {
        "address": "[email protected]",
        "name": "mailbox"
      }
    ],
    "html": "<span class=\"mp_address_group\"><span class=\"mp_address_name\">mailbox</span> &lt;<a href=\"mailto:[email protected]\" class=\"mp_address_email\">[email protected]</a>&gt;</span>",
    "text": "\"mailbox\" <[email protected]>"
  },
  "from": {
    "value": [
      {
        "address": "[email protected]",
        "name": "user1"
      }
    ],
    "html": "<span class=\"mp_address_group\"><span class=\"mp_address_name\">user1</span> &lt;<a href=\"mailto:[email protected]\" class=\"mp_address_email\">[email protected]</a>&gt;</span>",
    "text": "\"user1\" <[email protected]>"
  },
  "messageId": "<[email protected]>",
  "inReplyTo": "<[email protected]>",
  "html": false
}

The email body seems to get lost somewhere.

sebastian-de avatar Mar 03 '24 07:03 sebastian-de

Hi, same problem here. Has anyone found a solution / workaround ? Rocket.Chat Version: 6.11.1 NodeJS Version: 14.21.3 - x64 MongoDB Version: 5.0.24 MongoDB Engine: wiredTiger Platform: linux

jimisens avatar Aug 29 '24 16:08 jimisens

Hi, same issue here. Rocket.Chat Version: 7.1.0 MongoDB Version: 6.0 Platform: linux (docker)

stefanos87 avatar Dec 13 '24 08:12 stefanos87

Same here:

Rocket.Chat version: 7.7.1 MongoDB: 7.0.2 Node Version: v22.16.0 Platform: Debian 12

tunmia avatar Jun 20 '25 14:06 tunmia