Skip to content

Conversation

skeller
Copy link

@skeller skeller commented Jun 25, 2025

Catch IOException in sendContinuation() similar to the other send / receive methods.
This fixes broken IMAP push on network loss/regain on the authors phone.
Log that exception in sendDone().
Also reset read timeout after IDLE.

This fixes broken IMAP IDLE on my phone (Pixel 6 Pro w/ Android 16). IMAP IDLE is reproducably broken if the home wifi is left for about an hour (mobile data on) then the phone returns. Unfortunately I have not been able to log the issue as the log's history is always way too short. But unpatched K-9 Mail this IMAP IDLE breaks every time; with this patch it so far has not broken (about 5 "events" were it should have and did break -- I was running both versions in parallel).

Catch IOException in sendContinuation() similar to the other send
/ receive methods.
This fixes broken IMAP push on network loss/regain on the authors
phone.
Log that exception in sendDone().
Also reset read timeout after IDLE.
@skeller skeller requested a review from a team as a code owner June 25, 2025 15:45
@skeller skeller requested a review from wmontwe June 25, 2025 15:45
Copy link
Member

@wmontwe wmontwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Log.v("%s>>> %s", logId, continuation)
}
} catch (e: IOException) {
close()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, I guess not closing the connection was the issue.

@wmontwe wmontwe merged commit 4984f40 into thunderbird:main Jul 1, 2025
3 checks passed
@thunderbird-botmobile
Copy link
Contributor

Thanks for your contribution! Your pull request has been merged and will be part of Thunderbird 12. We appreciate the time and effort you put into improving Thunderbird. If you haven’t already, you’re welcome to join our Matrix chat for contributors. It’s where we discuss development and help each other out. https://matrix.to/#/#tb-android-dev:mozilla.org
Hope to see you there! 🚀📱🐦

@thunderbird-botmobile thunderbird-botmobile bot added this to the Thunderbird 12 milestone Jul 1, 2025
@kewisch kewisch added the task: uplift to beta Uplift to the beta branch label Jul 2, 2025
coreycb pushed a commit that referenced this pull request Jul 2, 2025
Catch I/O errors in sendContinuation()
@coreycb coreycb removed the task: uplift to beta Uplift to the beta branch label Jul 2, 2025
@coreycb coreycb modified the milestones: Thunderbird 12, Thunderbird 11 Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants