RocketChat / RocketChat/Rocket.Chat
[BUG] Direct Reply: Email Intercepter doesn't wake up
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
After setting up Direct Reply a new IMAP instance is started successfully, and first emails are fetched, but after a while (about 30 minutes) the E-Mail Intercepter stops fetching new emails.
Server Setup Information:
- Version of Rocket.Chat Server: 0.61.0
- 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:
- set up
Direct Replywith IMAP - create some direct emails and then wait for a longer time before answering
- E-Mail Intercepter doesn't fetch new emails
Expected behavior:
E-Mail Intercepter must fetch new emails
Actual behavior:
E-Mail Intercepter stops fetching emails after a while, no logs.
Relevant logs:
working logs:
Feb 1 15:01:48 testrocket testrocket[1057]: Starting Email Intercepter...
Feb 1 15:01:48 testrocket testrocket[1057]: Starting new IMAP instance......
Feb 1 15:01:48 testrocket testrocket[1057]: [connection] Connected to host
.....
Feb 1 15:01:49 testrocket testrocket[1057]: => 'IDLE IDLE'
Feb 1 15:01:49 testrocket testrocket[1057]: <= '+ idling'
Feb 1 15:01:49 testrocket testrocket[1057]: => DONE
stop fetching:
Feb 1 01:05:59 testrocket testrocket[1057]: => DONE
Feb 1 01:08:42 testrocket testrocket[1057]: => DONE
Feb 1 01:08:42 testrocket testrocket[1057]: => DONE
Feb 1 01:10:20 testrocket testrocket[1057]: => DONE
Feb 1 01:10:20 testrocket testrocket[1057]: => DONE
Feb 1 01:12:08 testrocket testrocket[1057]: => DONE
Feb 1 01:12:08 testrocket testrocket[1057]: => DONE
Feb 1 01:17:08 testrocket testrocket[1057]: => DONE
Feb 1 01:22:08 testrocket testrocket[1057]: => DONE
stop fetching
Feb 1 15:01:49 testrocket testrocket[1057]: => DONE
Feb 1 15:06:49 testrocket testrocket[1057]: => DONE
Feb 1 15:10:05 testrocket testrocket[1057]: => DONE
Feb 1 15:10:05 testrocket testrocket[1057]: => DONE
Feb 1 15:15:05 testrocket testrocket[1057]: => DONE
Feb 1 15:20:05 testrocket testrocket[1057]: => DONE
Feb 1 15:25:05 testrocket testrocket[1057]: => DONE
Feb 1 15:30:05 testrocket testrocket[1057]: => DONE
Feb 1 15:35:05 testrocket testrocket[1057]: => DONE
stop fetching
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 Direct Reply email interceptor and its IMAP IDLE handling, reproducing the setup and waiting beyond the reported 30-minute interval. Use the provided working and failing DONE logs to trace why fetching stops; done means new emails continue to be fetched after the interceptor has been idle.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100