Closed Bug 1818589 Opened 1 year ago Closed 1 year ago

[imap-js] mailnews.imap.jsmodule=true duplicates Trash folder for Gmail

Categories

(MailNews Core :: Networking: IMAP, defect)

Thunderbird 112
defect

Tracking

(thunderbird_esr102 unaffected, thunderbird110 unaffected, thunderbird111 unaffected)

RESOLVED FIXED
112 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird110 --- unaffected
thunderbird111 --- unaffected

People

(Reporter: soeren.hentzschel, Assigned: mkmelin)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(4 files)

With mailnews.imap.jsmodule=true the trash folder for Gmail is duplicated. If you remove it via the Gmail web interface it is recreated by Thunderbird the next time you start Thunderbird.

With mailnews.imap.jsmodule=false it doesn't happen.

Tested with Thunderbird Daily 112.0a1 (2023-02-23) on macOS 13.2.

Regressed by: 1762688
No longer regressed by: imap-js

After initial gmail setup in a fresh profile, I get the [Gmail] folder showing. This indicates with imap-js we're not at that point realizing it's a gmail server. https://searchfox.org/comm-central/rev/35bfdf5fb8a89112a955dfb8d26ecf8cd1ae0719/mailnews/imap/src/nsImapIncomingServer.cpp#2043
After restart the [Gmail] is (not showing anymore) though, but at that point the Trash folder was already created at the root.

See Also: → 1818253
Summary: [imap-js] mailnews.imap.jsmodule=true duplicates trash folder for Gmail → [imap-js] mailnews.imap.jsmodule=true duplicates Trash folder for Gmail
See Also: → 1818705
Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/72bcc241bfd4
[imap-js] Detect special use folders during folder discovery so Trash doesn't get duplicated. r=rnons

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Attached image screenshot

While the Gmail case is fixed now the folders (not only the trash folder) of my other mail accounts are duplicated. And the duplicated folders are subfolders of the inbox for unknown reasons.

@Magnus: Please see above.

Flags: needinfo?(mkmelin+mozilla)
Blocks: 1818253
See Also: 1818253

With which daily did that happen? Could it rather be from bug 1816350?
Please check a webmail version and make sure any server side folders aren't actually there - for whatever reason or bug. Also the folder subscriptions so see if there's any clues there, like you'd have had those folders but they were previously unsubscribed(?). It could be better to investigate this in a new bug, with a protocol log attached.

Flags: needinfo?(mkmelin+mozilla)

It happened with the Daily from 2023-02-26 and I didn't test imap-js between the original bug report and my last comment. Regarding your other question / notices I have to investigate but I don't have enough time right now. I'll set a needinfo? request for myself so that I won't forget it and I will file a new bug once I know more.

Flags: needinfo?(soeren.hentzschel)
Duplicate of this bug: 1818705

You were right. According to mozregression it's a regression from bug 1816350. I filed bug 1819186.

Flags: needinfo?(soeren.hentzschel)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: