Closed Bug 2055743 Opened 4 months ago Closed 3 months ago

First archive attempt for new imap account goes to Local Folders

Categories

(MailNews Core :: General, defect)

Thunderbird 139
defect

Tracking

(thunderbird_esr153 affected, thunderbird156 fixed)

RESOLVED FIXED
156 Branch
Tracking Status
thunderbird_esr153 --- affected
thunderbird156 --- fixed

People

(Reporter: gds, Assigned: welpy-cw)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fixed by bug 2059386 and 2060402])

Attachments

(1 obsolete file)

When an account is set up and Sent, Drafts or Templates don't already exist on the server they will be created in the selected account after a message is sent or a draft or template is saved, which is Ok. However, if folder named Archives doesn't exist on the imap server, it will be created in Local Folders when a message is archived and not in the selected account. This appears to be a regression since it worked correctly on an old laptop still running TB 68.10.1 (archive and subfolders created inside the account on 1st archive attempt and NOT in Local Folders). Looking closer, I also found that this also worked before the fix for bug 1958106 landed, so actually this seems to be a fairly recent regression.

Note: This was originally reported at bug 2052765 comment 0. A possible fix is included with the attachment there.

Thanks for identifying the regression. Please also set the version # field when the range has been identified.

Version: unspecified → Thunderbird 139
Assignee: nobody → h.w.forms
Status: NEW → ASSIGNED

I haven't applied or even looked at Hartmut's comment 2 patch above. But using self-built daily pulled maybe yesterday, I can't seem to replicate the problem I describe in comment 0. I create a new account having no existing Archives folder, leave Copies and Folders settings at default (e.g., "Keep archives in" is checked, ""Archives" folder on <my server name>" selected and not "Other") and when I archive a message Archives/2026 is created inside the new account and the message is moved there and not into Archives of Local Folders. So it appears that the bug I reported in comment 0 has already been fixed somehow. Not sure what bug Hartmut's comment 2 patch fixes. Maybe it's now just an improvement on how things work?

You’re right, Gene. The specific problem from comment 0 was fixed after this bug was filed. Bug 2059386 made the identity folder creation APIs asynchronous and able to create folders on remote servers, and bug 2060402 changed archiving to use that API.

The attached patch primarily addresses the remaining problem reported in bug 2066371: account-default special-folder preferences can contain noncanonical IMAP namespace URIs, causing Thunderbird to miss the actual server-designated folder. It resolves that folder and repairs the stored URI. It also makes the common resolver respect an explicit “Other” selection instead of silently falling back.

I’ll move the patch to the more appropriate bug and close this one.

No longer blocks: 2066371
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Depends on: 2059386, 2060402
Resolution: --- → FIXED
See Also: → 2066371
Whiteboard: [fixed by bug 2059386 and 2060402]
Target Milestone: --- → 156 Branch

Comment on attachment 9636125 [details]
Bug 2055743 - Resolve account-default special folders on the configured server. r=#thunderbird-reviewers

Revision D323398 was moved to bug 2066371. Setting attachment 9636125 [details] to obsolete.

Attachment #9636125 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: