-
Notifications
You must be signed in to change notification settings - Fork 163
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
🐛 [Bug] Gmail messages not shown #1402
Comments
I analysed this a bit. Cypth (modules/imap/hm-imap-base.php) is successfully communicating with gmail. Getting settings, and the list of messages. All of it, the first timestamp is 2006. My guess is that it then goes on to fetch a whole lot of messages and something times out, but I haven't confirmed that yet. My feeling is that gmail is not answering imap requests very fast (throttling them even). Now, perhaps, I should tidy up my inbox, but then again, I'm hardly the only one using the search function instead of organized folders... |
I looked a bit into this. I see the following imap command being sent to gmail imap server :
which then yields the answer : |
Ok, it's |
Follow up : after disabling preview mail option (and also locally changing BODY.PEEK[0.1] to BODY.PEEK[1]), things only sort-of work. If I nuke local cache in the browser, I get gmail message in the "Everything" view. |
Hello @indridieinarsson, thank you for raising the issue, |
Hi, thanks for looking into it. And my "solution" isn't really a solution yet, as it goes only from "never works" to "works for an hour then no more". |
Now, I'm tracking this a bit. Seems that the xoauth2 logon is unsuccessful. In hm-imap.php, I am landing here:
the base64 encoded json string in the reply says : |
So, it appears that this is caused by the oauth2 bearer token expiring. |
|
|
🐛 Bug
I have an install using sqlite database, redis and memcached enabled, running as a docker image.
I have 3 different accounts, one of them gmail. The other two accounts (on two separate and different servers) work as expected, both in single-mailbox mode (under the Email tab) and in the combined views.
Gmail, on the other hand has problems. After restarting cypht, it works, showing me mails in single-mode and in the combined views.
After just a few navigations, cypht stops showing any messages from my gmail account.
That goes for both viewing the gmail INBOX directly (which shows no messages, although there are thousands) and also the combined views, which show no message from the gmail account, only from the other two.
It may be of importance here, that my gmail inbox is pretty huge, containing my entire email history for years.
Version & Environment
Rev: 412b5ad
OS: Linux x86 / docker
The text was updated successfully, but these errors were encountered: