Closed Bug 1958106 Opened 26 days ago Closed 19 days ago

nsIMsgIdentity folder attributes should be plain attributes

Categories

(MailNews Core :: General, task)

Tracking

(Not tracked)

RESOLVED FIXED
139 Branch

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

If you have an identity object and get (e.g.) the draftFolder attribute, the code attempts to find and create an appropriate nsIMsgFolder object from the URL in the preferences, even one that doesn't exist. These attributes should just get/set the URI in the preferences, and there should be separate functions for finding a real nsIMsgFolder that really exists. Really.

Yes, somebody WONTFIXed a previous bug for a similar thing, but this time we're going to do it, because we're building a database that doesn't have imaginary folders in it.

The identity's preferences will have no value initially. It could be set by something like IMAP folder discovery.
Only when we need to use one of the folders will we attempt to create it if it doesn't already exist.

Attachment #9476765 - Attachment description: WIP: Bug 1958106 - Change how nsIMsgIdentity folder attributes work. → Bug 1958106 - Change how nsIMsgIdentity folder attributes work. r=#thunderbird-back-end-reviewers
Target Milestone: --- → 139 Branch

Pushed by vineet@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/dfaaef430583
Change how nsIMsgIdentity folder attributes work. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 19 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: