Closed Bug 1907630 Opened 2 years ago Closed 2 years ago

JsAccount: Stop creating dummy store files

Categories

(MailNews Core :: Backend, defect)

Thunderbird 127
defect

Tracking

(Not tracked)

RESOLVED FIXED
130 Branch

People

(Reporter: neil, Assigned: neil)

References

Details

Attachments

(1 external file)

When you first create a JaFolder's database, JsAccount creates a dummy store file for that folder. ExQuilla never really used this file, or indeed the pluggable message store at all. Owl however respects the pluggable message store, but fortunately since it asked the store to create folders, the store would create a store file (MBox) or directory (Maildir) as appropriate, and JsAccount would then skip creating a store file since the store had already done its work. In particular this avoided creating a store file when Maildir actually wanted a directory.

Unfortunately bug 1889653 changed the way the MBox store creates folders, so that it creates the nsIMsgFolder object first and then the store file. (This was deemed to be better than to make the new caller ensure discovery of existing subfolders had already been done before creating any subfolders.) With JsAccount also creating the store file, this prevents the store from creating folders. This means that there is no consistently reliable way of creating JsAccount folders, as addSubfolder only works by chance for MBox stores and store.createFolder only works (for now at least) for Maildir stores.

We would like to remove JsAccount's automatic store file creation, which will not only let us be able to consistently use store.createFolder again in the future, but also future-proof us against any similar change in the Maildir store (which would be even more inconvenient for us to work around).

Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #9412558 - Flags: review?(mkmelin+mozilla)
See Also: → 1889653

Comment on attachment 9412558 [details]
Bug 1907630 - JsAccount shouldn't create dummy store files. r=mkmelin

[review on phab, no flag needed on bugzilla]

Attachment #9412558 - Flags: review?(mkmelin+mozilla)
Attachment #9412558 - Attachment description: Bug 1907630 JsAccount shouldn't create dummy store files r=mkmelin → Bug 1907630 - JsAccount shouldn't create dummy store files. r=mkmelin
Summary: Stop JsAccount from creating dummy store files → JsAccount: Stop creating dummy store files

Pushed by daniel@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/5880e3c59810
JsAccount shouldn't create dummy store files. r=mkmelin

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

missing target milestone

Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: