Skip to content
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

Closed
2 tasks done
Ian1Chong opened this issue Nov 1, 2024 · 23 comments
Closed
2 tasks done

IMAP Idle Not Working #8461

Ian1Chong opened this issue Nov 1, 2024 · 23 comments
Labels
type: bug Something is causing incorrect behavior or errors unconfirmed Newly reported issues awaiting triage or confirmation

Comments

@Ian1Chong
Copy link

Checklist

  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.

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

Screenshot_20241101-123722
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

@Ian1Chong Ian1Chong added type: bug Something is causing incorrect behavior or errors unconfirmed Newly reported issues awaiting triage or confirmation labels Nov 1, 2024
@kewisch
Copy link
Member

kewisch commented Nov 1, 2024

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?

@kewisch kewisch added the status: needs information Needs more information to proceed label Nov 1, 2024
@Ian1Chong
Copy link
Author

Thunderbird has permissions for everything.

Screenshot_20241102-021413

Screenshot_20241102-021413

@github-actions github-actions bot removed the status: needs information Needs more information to proceed label Nov 2, 2024
@galmok
Copy link

galmok commented Nov 2, 2024

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.

@cketti
Copy link
Member

cketti commented Nov 3, 2024

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

@cketti cketti added the status: needs information Needs more information to proceed label Nov 3, 2024
@galmok
Copy link

galmok commented Nov 3, 2024

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.

@github-actions github-actions bot removed the status: needs information Needs more information to proceed label Nov 3, 2024
@pvones
Copy link

pvones commented Nov 27, 2024

Now it takes about 5 minutes for manual refresh (by swiping down on Inbox) before synchronization happens.

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.

@Ian1Chong
Copy link
Author

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.

@pvones
Copy link

pvones commented Nov 27, 2024

How did you set the Account / Fetching mail / Folder poll frequency? To Never or some time period?

@Ian1Chong
Copy link
Author

I set it to every 15 minutes, which is the shortest interval. Would a different setting make push mail work like in K-9?

@pvones
Copy link

pvones commented Nov 27, 2024

I think it somehow conflicts with the push notifications. I had the value 3 hours, now I am testing Never.

@pvones
Copy link

pvones commented Dec 4, 2024

@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:

  1. Connect to home Wi-Fi (for hours, push notifications works)
  2. Connect to mobile Internet (push notifications works)
  3. After 10 minutes connect to Wi-Fi (push notifications works)
  4. After 10 minutes connect to mobile Internet (push notifications stops working, for hours, the IMAP reconnect feature every 12 minutes won't help)

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

@pvones
Copy link

pvones commented Dec 18, 2024

The issue persists in 8.2 too.

@kq01526
Copy link

kq01526 commented Dec 20, 2024

@kewisch @cketti

What type of permissions do you have granted to Thunderbird? Do you have the alarms and notification permission granted for example?

Did you enable push for the inbox under Manage folders → Inbox → Enable Push?

Thanks, that seems to have solved it.

@kq01526
Copy link

kq01526 commented Dec 20, 2024

@Ian1Chong

Thunderbird has permissions for everything.

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:

@galmok

yes, push is enabled; always has been.

That screenshot does not show whether or not the "Enable Push" setting has been enabled for the Inbox folder.

@Ian1Chong
Copy link
Author

Thank you very much @kewisch & @cketti
IManage folders → Inbox → Enable Push has made it work. This has been an anoyance since migrated from K-9. Thank you very much!

@galmok
Copy link

galmok commented Dec 20, 2024

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?

@Ian1Chong
Copy link
Author

No thank you. IMAP Idle now works as it did in K-9. I did not know that I also had go to [Settings] > [Manage folders] > [Inbox] > [Enable Push]

Image

@galmok
Copy link

galmok commented Dec 20, 2024

Ok, but IMAP IDLE still doesn't work for me. Must be a different reason.

@Ian1Chong
Copy link
Author

Did you try the suggestion from @kewisch & @cketti ?
[Settings] → [Manage folders] → [Inbox] → [Enable Push] like on the screenshot ?

@galmok
Copy link

galmok commented Dec 20, 2024

I never had it disabled.

@Ian1Chong
Copy link
Author

These are screenshots of my other related settings if that helps...
Image
Image
Image

@kq01526
Copy link

kq01526 commented Dec 20, 2024

But I have the frequency for fetching emails set to never. I figured IMAP IDLE supercedes this, right?

It does. IMAP Idle works just fine even with "Folder Poll Frequency" set to "Never".

Ok, but IMAP IDLE still doesn't work for me. Must be a different reason.

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"

@galmok
Copy link

galmok commented Dec 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something is causing incorrect behavior or errors unconfirmed Newly reported issues awaiting triage or confirmation
Projects
None yet
Development

No branches or pull requests

6 participants