Closed Bug 1801286 Opened 2 years ago Closed 2 years ago

Going offline closes connection before POP3 QUIT command is processed

Categories

(MailNews Core :: Networking: POP, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr102 fixed, thunderbird108 affected)

RESOLVED FIXED
109 Branch
Tracking Status
thunderbird_esr102 --- fixed
thunderbird108 --- affected

People

(Reporter: hkallweit1, Assigned: rnons)

Details

Attachments

(2 files)

Steps to reproduce:

I use POP3 to retrieve mail from multiple mail providers.
Issue occurs when I go offline in Thunderbird what triggers fetching mail from all providers. "Leave messages on server" is disabled.
Issue does not happen when fetching mail via Shift+F5 whilst being online.

Actual results:

Retrieving mail from Gmail doesn't delete the mail on the server. Therefore next time the same mail are re-downloaded. Note that the issue may not be related to Gmail as such, but caused by the fact that Gmail is the last provider processed.

POP3 traffic log shows that seemingly the connection is closed before the QUIT command is processed. Response from server is missing and error number indicates premature offline state (Decimal status code is 0x804b0010 = NS_ERROR_OFFLINE).

mailnews.pop3.11: C: DELE 1 Pop3Client.jsm:473:20
mailnews.pop3.11: S: +OK marked for deletion Pop3Client.jsm:330:18
mailnews.pop3.11: Folder lock released. Pop3Client.jsm:1206:22
mailnews.pop3.11: Done with status=0 Pop3Client.jsm:1432:18
mailnews.pop3.11: C: QUIT Pop3Client.jsm:473:20
mailnews.pop3.11: Done with status=2152398864 Pop3Client.jsm:1432:18
mailnews.pop3.11: Connection closed.

Expected results:

Retrieved mails are deleted on Gmail server.

Component: Untriaged → Networking: POP
Flags: needinfo?(remotenonsense)
Product: Thunderbird → MailNews Core
Assignee: nobody → remotenonsense
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

I see the same logs as comment 0, but I don't have duplicate message problem. Anyway, the patch should fix it. Thanks for reporting.

Flags: needinfo?(remotenonsense)
Target Milestone: --- → 109 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ce7822519deb
Wait for QUIT response in Pop3Client.jsm. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/16b1ea6fa707
follow-up - Fix for browser_mailAccountSetupWizard.js. r=mkmelin

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED

Comment on attachment 9304213 [details]
Bug 1801286 - Wait for QUIT response in Pop3Client.jsm. r=mkmelin

[Triage Comment]
Approved for 102 with wmwsk via Matrix.

Attachment #9304213 - Flags: approval-comm-esr102+

Comment on attachment 9305243 [details]
Bug 1801286 follow-up - Fix for browser_mailAccountSetupWizard.js. r=mkmelin

[Triage Comment]
Approved

Attachment #9305243 - Flags: approval-comm-esr102+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: