RocketChat / RocketChat/Rocket.Chat

Direct Reply emails over IMAP or POP3 not being added to chat, but are being deleted on access

Open
#9,300 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Email replies via Direct Reply to emails don't appear to be getting parsed. Emails are sent out via SMTP on the same G Suite account.

Server Setup Information:
  • Version of Rocket.Chat Server: 0.60.2
  • Operating System: Ubuntu
  • Deployment Method(snap/docker/tar/etc): snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • Node Version: v8.8.1
Steps to Reproduce:
  1. Send email to user offline
  2. Receive email
  3. Reply to it (states direct reply is enabled in footer of the email)
  4. Check receiving IMAP address and see emails
  5. Wait
  6. Emails still there and not added into RocketChat.
Expected behavior:

RocketChat to add the emails into the chat thread.

Actual behavior:

They don't get added.

Relevant logs:

I20180102-03:40:42.241(0) <= 'A1 OK chat@splitanatom.com authenticated (Success)'
I20180102-03:40:42.241(0) => 'A2 NAMESPACE'
I20180102-03:40:42.365(0) <= '* NAMESPACE (("" "/")) NIL NIL'
I20180102-03:40:42.365(0) <= 'A2 OK Success'
I20180102-03:40:42.366(0) => 'A3 LIST "" ""'
I20180102-03:40:42.487(0) <= '* LIST (\Noselect) "/" "/"'
I20180102-03:40:42.488(0) <= 'A3 OK Success'
I20180102-03:40:42.489(0) => 'A4 SELECT "INBOX" (CONDSTORE)'
I20180102-03:40:42.629(0) <= '* FLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing)'
I20180102-03:40:42.630(0) <= '* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing \)] Flags permitted.'
I20180102-03:40:42.633(0) <= '
OK [UIDVALIDITY 1] UIDs valid.'
I20180102-03:40:42.638(0) <= '* 2 EXISTS'
I20180102-03:40:42.638(0) <= '* 0 RECENT'
I20180102-03:40:42.639(0) <= '* OK [UIDNEXT 16] Predicted next UID.'
I20180102-03:40:42.640(0) <= '* OK [HIGHESTMODSEQ 20177]'
I20180102-03:40:42.640(0) <= 'A4 OK [READ-WRITE] INBOX selected. (Success)'
I20180102-03:40:42.641(0) => 'A5 UID SEARCH UNSEEN'
I20180102-03:40:42.772(0) <= '* SEARCH 14 15'
I20180102-03:40:42.773(0) <= 'A5 OK SEARCH completed (Success)'
I20180102-03:40:42.774(0) => 'A6 UID FETCH 14,15 (X-GM-THRID X-GM-MSGID X-GM-LABELS MODSEQ UID FLAGS INTERNALDATE BODYSTRUCTURE BODY[HEADER.FIELDS (FROM TO DATE MESSAGE-ID)] BODY[1])'
I20180102-03:40:42.972(0) <= '* 1 FETCH (X-GM-THRID 1588449156052509842 X-GM-MSGID 1588449184524534086 X-GM-LABELS ("\\Important") UID 14 MODSEQ (19784) INTERNALDATE "02-Jan-2018 03:19:50 +0000" FLAGS (\Seen) BODY[HEADER.FIELDS (FROM TO DATE MESSAGE-ID)] {203}'
I20180102-03:40:42.973(0) <= '* 1 FETCH (X-GM-THRID 1588449156052509842 X-GM-MSGID 1588449184524534086 X-GM-LABELS ("\\Important") UID 14 MODSEQ (19784) INTERNALDATE "02-Jan-2018 03:19:50 +0000" FLAGS (\Seen) BODY[1] {591}'
I20180102-03:40:42.974(0) <= '* 1 FETCH (X-GM-THRID 1588449156052509842 X-GM-MSGID 1588449184524534086 X-GM-LABELS ("\\Important") UID 14 MODSEQ (19784) INTERNALDATE "02-Jan-2018 03:19:50 +0000" FLAGS (\Seen) BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "utf-8") NIL NIL "QUOTED-PRINTABLE" 591 17 NIL NIL NIL)("TEXT" "HTML" ("CHARSET" "utf-8") NIL NIL "QUOTED-PRINTABLE" 3517 45 NIL NIL NIL) "ALTERNATIVE" ("BOUNDARY" "----=_NextPart_48822223.975199258791") NIL NIL))'
I20180102-03:40:42.974(0) <= '* 2 FETCH (X-GM-THRID 1588449172106338007 X-GM-MSGID 1588449587002932893 X-GM-LABELS ("\\Important") UID 15 MODSEQ (19887) INTERNALDATE "02-Jan-2018 03:26:14 +0000" FLAGS (\Seen) BODY[HEADER.FIELDS (FROM TO DATE MESSAGE-ID)] {203}'
I20180102-03:40:42.974(0) <= '* 2 FETCH (X-GM-THRID 1588449172106338007 X-GM-MSGID 1588449587002932893 X-GM-LABELS ("\\Important") UID 15 MODSEQ (19887) INTERNALDATE "02-Jan-2018 03:26:14 +0000" FLAGS (\Seen) BODY[1] {762}'
I20180102-03:40:42.975(0) <= '* 2 FETCH (X-GM-THRID 1588449172106338007 X-GM-MSGID 1588449587002932893 X-GM-LABELS ("\\Important") UID 15 MODSEQ (19887) INTERNALDATE "02-Jan-2018 03:26:14 +0000" FLAGS (\Seen) BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "utf-8") NIL NIL "QUOTED-PRINTABLE" 762 19 NIL NIL NIL)("TEXT" "HTML" ("CHARSET" "utf-8") NIL NIL "QUOTED-PRINTABLE" 3688 47 NIL NIL NIL) "ALTERNATIVE" ("BOUNDARY" "----=_NextPart_40387834.522793254357") NIL NIL))'
I20180102-03:40:43.228(0) <= '* 1 FETCH (UID 14 MODSEQ (20180) FLAGS (\Seen))'
I20180102-03:40:43.228(0) <= '* 2 FETCH (UID 15 MODSEQ (20182) FLAGS (\Seen))'
I20180102-03:40:43.229(0) <= 'A6 OK Success'
I20180102-03:40:43.229(0) => 'A7 STORE 1 +FLAGS.SILENT (\Deleted)'
I20180102-03:40:43.490(0) <= 'A7 OK Success'
I20180102-03:40:43.490(0) => 'A8 STORE 2 +FLAGS.SILENT (\Deleted)'
I20180102-03:40:43.769(0) <= 'A8 OK Success'
I20180102-03:40:43.770(0) => 'IDLE IDLE'
I20180102-03:40:43.935(0) <= '+ idling'
I20180102-03:40:43.936(0) <= '* 1 EXPUNGE'
I20180102-03:40:43.937(0) <= '* 1 EXPUNGE'
I20180102-03:40:43.937(0) <= '* 0 EXISTS'
I20180102-03:44:44.734(0) Starting Email Intercepter...
I20180102-03:44:44.735(0) => DONE
I20180102-03:44:44.856(0) <= 'IDLE OK IDLE terminated (Success)'
I20180102-03:44:44.857(0) => 'A9 LOGOUT'
I20180102-03:44:44.978(0) <= '* BYE LOGOUT Requested'
I20180102-03:44:44.979(0) <= 'A9 OK 73 good day (Success)'
I20180102-03:44:44.980(0) [connection] Ended
I20180102-03:44:44.981(0) [connection] Closed

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the email interceptor handling the IMAP/POP3 inbox and compare the fetched messages with the direct-reply expectation. Reproduce the six listed steps and inspect why messages are marked deleted; done when replies are added to the chat thread without being deleted.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.