K-9: IMAP sync silently failing when Gmail locks account

Created on 23 Sep 2019  路  3Comments  路  Source: k9mail/k-9

When I travel abroad, Gmail annoyingly locks my account almost every time mu IP address changes and I try to sync with k9. When this happens, there is no indication that syncing failed except that new emails don't appear. K9 should display some kind of error in these cases.

bug

Most helpful comment

To make progress, someone (it could be you) needs to actually obtain the message behavior that results and put it in the issue, and then analyze the code and figure out what to change. I did not assert that there was no bug -- only that your description is too vague to be actionable. At this point you should also build the development version at test against that; I know a lot of things have been improved but I have no idea if this is one of them.

All 3 comments

I realiize that you realize that you primarily have a google problem vs a k-9 problem, but for k-9 to be improved someone needs to figure out exactly what happens and how it can be recognized, and then decide that should happen and then write a patch. So if you can run adb and determine how your account behaves when it is in the "locked" state, that would be helpful. It could be anything from telling you that login failed, to letting you appear to log in but not reporting that new email is present. Perhaps google support can provide you with a specification.

Shouldn't k9 alert the user of any kind of login failure, regardless of the specifics?

I know that a login error message is provided by Gmail because I've had the same issue with OfflineImap (which does properly throw an error containing the full message from Gmail).

To make progress, someone (it could be you) needs to actually obtain the message behavior that results and put it in the issue, and then analyze the code and figure out what to change. I did not assert that there was no bug -- only that your description is too vague to be actionable. At this point you should also build the development version at test against that; I know a lot of things have been improved but I have no idea if this is one of them.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

raychinov picture raychinov  路  4Comments

frederiiiic picture frederiiiic  路  3Comments

asbach2 picture asbach2  路  3Comments

D0ve picture D0ve  路  3Comments

BerndErnst picture BerndErnst  路  3Comments