-
Notifications
You must be signed in to change notification settings - Fork 116
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 #54
Comments
@prashb94 same things. Did you get issue fixed? |
Hey, I just start the connection again if the server disconnects. A temporary fix for now. On Jul 18, 2016 06:42, dpcolaberry [email protected] wrote: @prashb94https://github.com/prashb94 same things. Did you get issue fixed? — |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Any news? |
@prashb94 as simple as this?
|
I've also noticed that sometimes due to the Idle event firing it can miss emails that have not previously been read. Weirdly if you restart the client it STILL ignores those received emails. You have to mark them as seen and then back to unread for them to parse. |
@Hardware-Hacks your solution did not work for me! I've tried two ways:
|
What I do now (although does not sound good) I use forever CLI to ensure that app always run, and then:
|
@amirhouieh fully agree there is something fundamentally wrong here and I can't fathom it. I even produced mail-listener-fixed which incorporated the best bits from all the forks in this area. I think there are at least 2 things going wrong, 1 of which is even hitting a timeout, if you use oauth you won't hit the same issue. 2 the IDLE command doesnt seem to receive responses after a while, or it is breaking down on the client side causing the server to disconnect the connection. I've actually ditched all of this now. For GMail specifically I switched over to context.io and use their npm library to retrieve emails via live sync. It works really good and offers the same functionality. |
add on node-modules/mail-listener2/index.js console.log('calling imap connect'); and then use it |
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.
Thanks
The text was updated successfully, but these errors were encountered: