Closed Bug 1728030 Opened 5 years ago Closed 5 years ago

Don't create Local Folders for a feed account

Categories

(MailNews Core :: Feed Reader, enhancement)

enhancement

Tracking

(thunderbird_esr91 wontfix)

RESOLVED FIXED
93 Branch
Tracking Status
thunderbird_esr91 --- wontfix

People

(Reporter: alta88, Assigned: alta88)

Details

Attachments

(1 file, 1 obsolete file)

Feeds by definition are stored locally and do not depend on Local Folders; don't check for them if the only account is a feed account.

Attached patch noFeedsLocalFolders.patch (obsolete) — — Splinter Review
Assignee: nobody → alta88
Attachment #9238426 - Flags: review?(benc)
Comment on attachment 9238426 [details] [diff] [review] noFeedsLocalFolders.patch Review of attachment 9238426 [details] [diff] [review]: ----------------------------------------------------------------- It all looks pretty sensible to me. r+ conditional on feedback. Magnus: a couple of sanity-check questions: 1) Are there any other places that might fall over without "Local Folders"? 2) Could you cast a quick eye over the feedAccountWizard.js part? It looks fine to me, but I don't know enough about the GUI side to really say for certain. ::: mailnews/base/prefs/content/accountUtils.js @@ +187,5 @@ > + ) { > + return true; > + } > + > + return false; nit: given that `.some()` returns boolean, would it be clearer to just ditch the `if` block and return it directly? Or even: ``` return MailServices.accounts.accounts.some(account => ["imap", "pop3", "nntp"].includes(account.incomingServer?.type) ) ``` I don't really know - I'm not really attuned to idiomatic javascript, so whatever you think reads best.
Attachment #9238426 - Flags: review?(benc)
Attachment #9238426 - Flags: review+
Attachment #9238426 - Flags: feedback?(mkmelin+mozilla)
Comment on attachment 9238426 [details] [diff] [review] noFeedsLocalFolders.patch Review of attachment 9238426 [details] [diff] [review]: ----------------------------------------------------------------- ::: mailnews/base/prefs/content/accountUtils.js @@ +177,5 @@ > + * @returns {Boolean} - true if at least 1 account exists that requires > + * Local Folders, else false. > + */ > +function requireLocalFoldersAccount() { > + const requireLocalFoldersAccountTypes = ["imap", "pop3", "nntp"]; What Ben suggested. And short enough to inline the whole function at that point... It's perhaps a bit more wants LocalFolders than require them. But seems alright.
Attachment #9238426 - Flags: feedback?(mkmelin+mozilla)
Status: NEW → ASSIGNED
Attachment #9238426 - Attachment is obsolete: true
Attachment #9238502 - Flags: review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/a64851bd74e4
Don't create Local Folders for a feed account. r=benc

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: