pulb / mailnag

An extensible mail notification daemon
GNU General Public License v2.0
254 stars 32 forks source link

Idler thread not attempting to reconnect #154

Open lgpasquale opened 7 years ago

lgpasquale commented 7 years ago

Mailnag stops checking for emails after a few hours. Usually my logs are populated with messages like:

Checking 1 email account(s).
Checking 1 email account(s).
Idler thread for account 'xxx@gmail.com (Gmail)' has been disconnected
Trying to reconnect Idler thread for account 'xxx@gmail.com (Gmail)'.
Successfully reconnected Idler thread for account 'xxx@gmail.com (Gmail)'.
Checking 1 email account(s).

When mailnag stops working, however, I see that it is because it doesn't even attempt to reconnect:

Checking 1 email account(s).
Checking 1 email account(s).
Idler thread for account 'xxx@gmail.com (Gmail)' has been disconnected
Checking 0 email account(s).

It's as if the condition at idlers.py:108 was not satisfied. I'll be glad to provide any other info needed to solve the issue.