Closed
Bug 56074
Opened 24 years ago
Closed 24 years ago
Delete button is disabled for accounts, imported from Outlook
Categories
(SeaMonkey :: MailNews: Account Configuration, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.8
People
(Reporter: max1, Assigned: sspitzer)
References
Details
(Whiteboard: [nsbeta1+])
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001008
BuildID: 2000100820
can not delete an account imported from Outlook or Outlook Express, because
delete button is disabled in the Account Settings dialog
Reproducible: Always
Steps to Reproduce:
1. Open mail window
2. import account from Outlook, if it is not imported
3. Choose "Edit"/"Mail/News Account Settings"
4. Select imported account
Actual Results: Delete button is disabled
Expected Results: Deleting is allowed for imported accounts
Comment 1•24 years ago
|
||
reporter: have you seen this on new builds?
Reporter | ||
Comment 2•24 years ago
|
||
Yes, I still can not delete those accounts on the build 2000103120
Assignee | ||
Comment 7•24 years ago
|
||
racham, I have a solution for this, but I never implemented it.
here it is:
a while back I added canDelete to the nsIMsgProtocolInfo interface. and for
"none", canDelete is false. AccountManager.js gets the protocol info for the
selected server, and disables the delete button based on canDelete.
the problem is imported eudora and outlook accounts are also of type "none".
to maintain backward compatablility, we need to add canDelete to the
nsIMsgIncomingServer interface. this boolean needs to be reflected in the per
server prefs.
the default value ("mail.server.default.canDelete" in mailnews.js) needs to be
false.
then we need to fix the import code so that when it creates incoming servers, it
sets canDelete to true. we don't need to do anything when we create the "Local
Folders" server. the default is correct.
the login in AccountManager.js has to be changed to be this:
canDelete = protocolInfo.canDelete;
if (!canDelete) {
canDelete = server.canDelete;
}
this makes it so if the protocol info says we can't delete, we check that the
current server hasn't overridden it.
notice, any eudora or outlook servers created before this fix will not be
deletable, unless the users edits their prefs.js file.
any eudora or outlook servers created after will be deletable.
any "Local Folders" created before or after will not be deletable.
let me know if you have any questions.
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•24 years ago
|
||
I should have had canDelete as part of the nsIMsgIncomingServer and not the
protocol info in the first place.
but since we shipped, any changes have to be backwards compatable. oh well,
live and learn.
Assignee | ||
Comment 9•24 years ago
|
||
adding andrew to the cc list.
he's going to take a crack at it.
andrew, see my comments on "2000-12-05 19:04", I've described the entire fix.
Updated•24 years ago
|
QA Contact: esther → nbaca
Comment 10•24 years ago
|
||
Comment 11•24 years ago
|
||
I've attached a patch, but I'd like to get some third party testing on it. I
don't have Outlook or Eudora handy, but it should work (famous last words :).
Assignee | ||
Comment 12•24 years ago
|
||
I'll test & review the fix. I hope to land it today.
andrew, thanks for yet another patch!
Status: ASSIGNED → NEW
Assignee | ||
Updated•24 years ago
|
Assignee: racham → sspitzer
Assignee | ||
Comment 13•24 years ago
|
||
taking from racham while I test and review.
Assignee | ||
Comment 14•24 years ago
|
||
the patch looks ok, but I want to test it. that will have to wait until
tomorrow.
the same bug exists for "canDuplicate". we will not be able to duplicate
imported accounts. do we want the user to be able to duplicate imported
accounts? (my guess is yes.)
adding nbaca and jglick for comments.
Status: NEW → ASSIGNED
Comment 15•24 years ago
|
||
marking nsbeta1+ and moving to mozilla0.8 milestone. It would be great if this
patch works out.
Assignee | ||
Comment 16•24 years ago
|
||
I'll try to land this patch today. It looks correct, I just need to test it.
thanks to andrew for being patient.
Assignee | ||
Comment 17•24 years ago
|
||
sorry, this will slide another couple of days.
eta on a landing, thursday dec 21.
Assignee | ||
Comment 18•24 years ago
|
||
change "protocolInfo" to "protocolinfo" in AccountManager.js, and it all works fine.
r=sspitzer, bienvenu, can you sr=?
Comment 19•24 years ago
|
||
sr = bienvenu, as long as protocolInfo->protocolinfo.
Assignee | ||
Comment 20•24 years ago
|
||
I've made that correction and checked it in.
thanks again andrew.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 21•24 years ago
|
||
note to qa:
local folders should still not be deletable.
any newly imported accounts should be deletable.
previously imported accounts are still not deletable. see #63554
Comment 22•24 years ago
|
||
Build 2001-01-2204: NT4, Mac 9.04
Verified Fixed, using Outlook Express and Eudora.
Status: RESOLVED → VERIFIED
Updated•24 years ago
|
Keywords: mozilla0.8
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•