Closed Bug 23313 Opened 25 years ago Closed 25 years ago

don't allow user to delete the "Local Folders" account

Categories

(MailNews Core :: Backend, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sspitzer, Assigned: sspitzer)

References

(Blocks 1 open bug)

Details

once ben and alecf land there account manager changes, I'm going create a stub function for "delete account", and make it so it returns if they try to delete the "Local Mail" (soon to be "Local Folders") account. delete account will still fail to work, but this will track something that I need to do.
I talked to seth in person - delete account has been written but not hooked up to any UI - it's actually removeAccount()
QA Contact: lchiang → nbaca
Hardware: PC → All
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Target Milestone: M13
Build 2000011109M13: NT4, Fixed. Linux: I'll wait till bug# 14798 is fixed before verifying this bug. Mac: Waiting on a good Mac build.
Build 2000012109M13: NT4, Linux, Mac Verified Fixed. When "Local Folders" is selected in Account Setup then the "Delete" button is greyed out.
Status: RESOLVED → VERIFIED
Hi guys, I was going to open up a bug that I can't delete the "Local Folders" account as it is used for nothing as far as I can tell in my setup - IMAP mail and news. All drafts/mail etc are stored in one of my IMAP accounts. I guess there is a technical reason as to why I can not delete this account? If not I'm going to open a bug that I can't do it? So can I have your comments please. Thanks, /James
james, the reason we always give the user a "local folders" account and don't allow them to delete it is there are areas of the code where we need to be guaranteed to have a mail folder on disk. even if you only only set up mozilla to read news. still need that local folders account. for example: 1) drafts and templates (we store the message in the local folders) 2) sending messages later (Unsent Messages folder on local folders) to make the code simpler, we just force the user to have a local folders account, and prevent them from deleting it. 4.x had the same thing: you could never get rid of the "Local Mail" account.
also, if we ever add imap offline, we'd use some of the local folders for that.
could you maybe have option "hide local folders"? please? (local folders are really annoying) tm
Product: MailNews → Core
Product: Core → MailNews Core
Blocks: 110672
You need to log in before you can comment on or make changes to this bug.