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 push stops working when device switches networks #8574

Closed
2 tasks done
J0nnyMak0 opened this issue Nov 16, 2024 · 5 comments
Closed
2 tasks done

IMAP IDLE push stops working when device switches networks #8574

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

Comments

@J0nnyMak0
Copy link

J0nnyMak0 commented Nov 16, 2024

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.0b5

Where did you get the app from?

Google Play

Android version

15

Device model

Pixel 6a

Steps to reproduce

  1. Reboot device for a fresh start
  2. Make sure both Wifi and Mobile data are active
  3. Make sure "Waiting for new emails" notification is active
  4. Make sure IMAP IDLE push is working by sending yourself a "test" message
  5. You should receive an instant notification
  6. Turn off Wifi and send yourself another "test" message (from a different device)*
  7. Notification does not appear and email is not in the message index
  8. Turn Wifi back on and send yourself another "test" message.
  9. Still no notification.
  10. Open Thunderbird and pull down to refresh
  11. Emails appear
  12. Send yourself yet another "test" message
  13. Still no email
  14. Go to "App info" for Thunderbird and "Force stop" the app
  15. Reopen Thunderbird
  16. Now send one last "test" message
  17. Now the message appears
  • All messages to yourself are sent from a different device

Other info: Changing the interval for "Refresh IMAP IDLE connection" does not change this wrong behavior

Expected behavior

IMAP IDLE should remain active and email notifications should be delivered instantly

Actual behavior

Receiving email and notifications stop when device switches networks

Logs

Log attached.

thunderbird_logs.txt

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

cketti commented Nov 16, 2024

The log doesn't show any obvious errors. IMAP connections seem to be re-established and the IDLE command is issued.

The app downloaded a bunch of messages, but didn't generate notifications because the messages have been marked as read on the server (see K9NotificationStrategy: No notification: Message is marked as read lines in the log). This is intended behavior.

@J0nnyMak0
Copy link
Author

That is odd, because when I refresh by pulling down, I do see new unread messages appear. Is there any more info I can generate that may be useful?

@cketti
Copy link
Member

cketti commented Nov 17, 2024

There's a lot of traffic in the log. It's hard to tell if everything is working like it should or not. Maybe disable periodic sync and push for all accounts but one. Then perform the steps to reproduce and write down the current time for each step. For the new messages use numbered subject lines. That should make it easier to correlate the information in the log.
When sending the messages make sure you don't have another client running that will mark them as read.

@J0nnyMak0
Copy link
Author

Just a quick update. After turning off sync and just keeping push enabled seems to have fixed my issues. At some point when the push and sync settings moved to folders, sync somehow got re-enabled for me I guess. At any rate, I'm not seeing this issue anymore and is now behaving like K-9 used to. I'm going to close this issue. If I run across this again, I'll re-open. Thanks!

@pvones pvones mentioned this issue Dec 4, 2024
2 tasks
@pvones
Copy link

pvones commented Dec 4, 2024

I am still able to reproduce this issue almost daily with the 8.1 version. Pixel 8a with Android 15.

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

3 participants