RocketChat / RocketChat/Rocket.Chat
Direct Reply emails over IMAP or POP3 not being added to chat, but are being deleted on access
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:
- Send email to user offline
- Receive email
- Reply to it (states direct reply is enabled in footer of the email)
- Check receiving IMAP address and see emails
- Wait
- 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:
[34mI20180102-03:40:42.241(0) <= 'A1 OK chat@splitanatom.com authenticated (Success)'
[34mI20180102-03:40:42.241(0) => 'A2 NAMESPACE'
[34mI20180102-03:40:42.365(0) <= '* NAMESPACE (("" "/")) NIL NIL'
[34mI20180102-03:40:42.365(0) <= 'A2 OK Success'
[34mI20180102-03:40:42.366(0) => 'A3 LIST "" ""'
[34mI20180102-03:40:42.487(0) <= '* LIST (\Noselect) "/" "/"'
[34mI20180102-03:40:42.488(0) <= 'A3 OK Success'
[34mI20180102-03:40:42.489(0) => 'A4 SELECT "INBOX" (CONDSTORE)'
[34mI20180102-03:40:42.629(0) <= '* FLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing)'
[34mI20180102-03:40:42.630(0) <= '* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing \)] Flags permitted.'
[34mI20180102-03:40:42.633(0) <= ' OK [UIDVALIDITY 1] UIDs valid.'
[34mI20180102-03:40:42.638(0) <= '* 2 EXISTS'
[34mI20180102-03:40:42.638(0) <= '* 0 RECENT'
[34mI20180102-03:40:42.639(0) <= '* OK [UIDNEXT 16] Predicted next UID.'
[34mI20180102-03:40:42.640(0) <= '* OK [HIGHESTMODSEQ 20177]'
[34mI20180102-03:40:42.640(0) <= 'A4 OK [READ-WRITE] INBOX selected. (Success)'
[34mI20180102-03:40:42.641(0) => 'A5 UID SEARCH UNSEEN'
[34mI20180102-03:40:42.772(0) <= '* SEARCH 14 15'
[34mI20180102-03:40:42.773(0) <= 'A5 OK SEARCH completed (Success)'
[34mI20180102-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])'
[34mI20180102-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}'
[34mI20180102-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}'
[34mI20180102-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))'
[34mI20180102-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}'
[34mI20180102-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}'
[34mI20180102-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))'
[34mI20180102-03:40:43.228(0) <= '* 1 FETCH (UID 14 MODSEQ (20180) FLAGS (\Seen))'
[34mI20180102-03:40:43.228(0) <= '* 2 FETCH (UID 15 MODSEQ (20182) FLAGS (\Seen))'
[34mI20180102-03:40:43.229(0) <= 'A6 OK Success'
[34mI20180102-03:40:43.229(0) => 'A7 STORE 1 +FLAGS.SILENT (\Deleted)'
[34mI20180102-03:40:43.490(0) <= 'A7 OK Success'
[34mI20180102-03:40:43.490(0) => 'A8 STORE 2 +FLAGS.SILENT (\Deleted)'
[34mI20180102-03:40:43.769(0) <= 'A8 OK Success'
[34mI20180102-03:40:43.770(0) => 'IDLE IDLE'
[34mI20180102-03:40:43.935(0) <= '+ idling'
[34mI20180102-03:40:43.936(0) <= '* 1 EXPUNGE'
[34mI20180102-03:40:43.937(0) <= '* 1 EXPUNGE'
[34mI20180102-03:40:43.937(0) <= '* 0 EXISTS'
[34mI20180102-03:44:44.734(0) Starting Email Intercepter...
[34mI20180102-03:44:44.735(0) => DONE
[34mI20180102-03:44:44.856(0) <= 'IDLE OK IDLE terminated (Success)'
[34mI20180102-03:44:44.857(0) => 'A9 LOGOUT'
[34mI20180102-03:44:44.978(0) <= '* BYE LOGOUT Requested'
[34mI20180102-03:44:44.979(0) <= 'A9 OK 73 good day (Success)'
[34mI20180102-03:44:44.980(0) [connection] Ended
[34mI20180102-03:44:44.981(0) [connection] Closed
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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