Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imap disconnected every few hours #1

Closed
Sureshkumars opened this issue May 8, 2017 · 5 comments
Closed

imap disconnected every few hours #1

Sureshkumars opened this issue May 8, 2017 · 5 comments

Comments

@Sureshkumars
Copy link

Is there a way to prolong the life of the mail listener connection without having to refresh the code every few hours? I notice that the mail listener disconnects after a while of no traffic.

@ImTheDeveloper
Copy link
Owner

@Sureshkumars I left a comment on the library this is forked from here chirag04/mail-listener2#54 (comment)

As you say there seems to be a disconnect error and I cant work out why.

@Sureshkumars
Copy link
Author

@Hardware-Hacks Is there any sample workaround for handling this?

@ImTheDeveloper
Copy link
Owner

@Sureshkumars There's a hacky fix here: chirag04/mail-listener2#54 (comment) essentially killing the process when there is a disconnect. As per my response, I've moved onto using context.io for linking to gmail as its much more stable.

@Sureshkumars
Copy link
Author

@ImTheDeveloper I fixed the issue with the same process. I guess the issue might be due to the default connection timeout of node-imap client ? 10000 seconds

@ImTheDeveloper
Copy link
Owner

I tried to change that but had no success 😣Did altering that time work for you? You can go into your node modules folder and change the idle time in that package after install to check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants