-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 Idle Not Working #8461
Comments
What type of permissions do you have granted to Thunderbird? Do you have the alarms and notification permission granted for example? Are you also experiencing this with K-9 Mail 8.0? |
I just want to pitch in here with my experiences. Fort new, IMAP IDLE has always dropped working sooner or later. I usually have to open the app and force a refresh to get it going again. It doesn't detect that the IMAP connection has been closed. |
Did you enable push for the inbox under Manage folders → Inbox → Enable Push? If you did and it still doesn't work, please record a debug log and attach it here. See https://github.com/thunderbird/thunderbird-android/wiki/LoggingErrors |
I would like to offer a debug log, but I cannot trigger this problem at will. I havent looked closer to when the connection is lost; I just force a refresh. I have two email programs configured for this exact problem. The other app uses a poll scheme and is reliable, but usually somewhat delayed. K-9 can be nearly instant, or doesn't show emails arriving at all. And yes, push is enabled; always has been. |
Check my issue #8079 Manual checking for new messages sometimes takes up to 3 minutes. Isn't it the same? I can reproduce it almost always when travel and walk the city, using public transport and subway. I have already captured many logs. Changing the Refresh IDLE Connection period has no effect. It seems as the connection gets stuck forever and the push receiver stops working. |
Yes, that is what I'm getting. It will sync and pull down new messages every 5 minutes, even though I've set IDLE connection refresh to 2 minutes. Push/IMAP Idle worked perfectly when it was K-9 Mail. |
How did you set the Account / Fetching mail / Folder poll frequency? To Never or some time period? |
I set it to every 15 minutes, which is the shortest interval. Would a different setting make push mail work like in K-9? |
I think it somehow conflicts with the push notifications. I had the value 3 hours, now I am testing Never. |
@cketti Is there any way to check whether the push notification receiver is running? I can make it stop working almost every day on two different devices (Android 12 and Android 15). Steps:
Since that the push notifications no longer work. You can manually check for the new messages only by the swipe down on Inbox, but when a new email arrives, nothing happens. I enabled the detailed logging, there was no record at the time when the new email was sent and supposed to be received. The only way to restore the notifications is to go to Settings / Applications / Thunderbird, push the Force Stop button and start the Thunderbird again. I can reproduce it many times with the 8.1 version. See #8574 |
The issue persists in 8.2 too. |
Those screenshots do not show whether or not the "Alarms & Reminders" setting was enabled for the app, which is a separate app settings toggle in the Android system settings (listed in the "Advanced" section below the Permissions section, i.e. not listed in "Permissions") and can also be accessed via: "System Settings -> Apps -> Special App Access -> Alarms & Reminders" And:
That screenshot does not show whether or not the "Enable Push" setting has been enabled for the Inbox folder. |
So, should I open a new ticket regarding IMAP IDLE not working? I have IDLE refresh at 24 minutes (default) and push is enabled. But I have the frequency for fetching emails set to never. I figured IMAP IDLE supercedes this, right? |
Ok, but IMAP IDLE still doesn't work for me. Must be a different reason. |
I never had it disabled. |
It does. IMAP Idle works just fine even with "Folder Poll Frequency" set to "Never".
As mentioned earlier, the "Alarms & Reminders" setting needs to be enabled as well, which is a separate app settings toggle in the Android system settings (listed in the "Advanced" section below the Permissions section, i.e. not listed in "Permissions") and can also be accessed via: "System Settings -> Apps -> Special App Access -> Alarms & Reminders" |
As mentioned, Folder Poll Frequency (I see it in Danish: frekvens for hentning af mails) is set to never, and I have now increased the IDLE connection renewal to 60 minutes from 24 minutes (just tried it at 6 minutes and that wasn't a success). I don't think this has ever worked for be, and I am now using a different email provider (same problem). I already had the Alarms $ Reminders enabled. But thanks for the reminder. Due to this being unreliable, I have configured Samsungs own email program that polls, just to be sure to get a (delayed) notification that I have unread emails. |
Checklist
App
Thunderbird for Android
App version
8.0
Where did you get the app from?
Google Play
Android version
13
Device model
Sony Xperia 1iii
Steps to reproduce
Even with IMAP IDLE refresh set at every 2 minutes, it does not synchronize and pull in new email for over 5 minutes. With K-9 Email it was instant.
Expected behavior
With K-9 with IMAP IDLE refresh set at every over 10 minutes, synchronization and pulling down new emails it was instant.
Actual behavior
Now it takes about 5 minutes for manual refresh (by swiping down on Inbox) before synchronization happens.
Logs
No response
The text was updated successfully, but these errors were encountered: