Closed
Bug 500970
Opened 15 years ago
Closed 15 years ago
Activity Manager: Removing account causes lots of "Folder Deleted" messages.
Categories
(Thunderbird :: General, defect)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.0b4
People
(Reporter: Fallen, Assigned: Bienvenu)
Details
Attachments
(1 file)
1.15 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
Not quite sure step 1 is needed, but this is what I was doing when I came across this problem. I think this is blocking-tb3, since the user might be confused and panic, if he sees messages that all of his folders were deleted. STR: 1. Let Thunderbird index your folders 2. Delete the account that is being indexed Actual: * For each folder, the activity manager says the folder was deleted. Expected: * One message that the account was deleted, or none at all.
Flags: blocking-thunderbird3?
Comment 1•15 years ago
|
||
Marking as blocking until we can investigate how hard.
Assignee: nobody → bienvenu
Flags: blocking-thunderbird3? → blocking-thunderbird3+
Updated•15 years ago
|
Version: unspecified → Trunk
Updated•15 years ago
|
Whiteboard: [has l10n impact]
Updated•15 years ago
|
Target Milestone: --- → Thunderbird 3.0b4
Assignee | ||
Comment 2•15 years ago
|
||
removing an account removes the server from the list of servers, so the call to FindServer will fail in that case, and succeed in other cases, so this should fix it.
Attachment #395464 -
Flags: review?(mkmelin+mozilla)
Assignee | ||
Comment 3•15 years ago
|
||
I'm not particularly inclined to add an activity manager item for this action at this point, so I just went with the removing of the deleted folder notifications.
Status: NEW → ASSIGNED
Whiteboard: [has l10n impact] → [has l10n impact][has patch for review]
Assignee | ||
Comment 4•15 years ago
|
||
removing the [has l10n impact] status whiteboard - if we decide to add an activity mgr notification, then we should add that back to status whiteboard. I think there is some sort of notification when an account is removed; we needed that for the folder pane.
Whiteboard: [has l10n impact][has patch for review] → [has patch for review]
Updated•15 years ago
|
Attachment #395464 -
Flags: review?(mkmelin+mozilla) → review+
Comment 5•15 years ago
|
||
Comment on attachment 395464 [details] [diff] [review] proposed fix Looks reasonable to me, with some minor nits > folderDeleted : function(aFolder) { >+ let acctMgr = Components.classes["@mozilla.org/messenger/account-manager;1"] >+ .getService(Components.interfaces.nsIMsgAccountManager); Align .getService with .classes >+ let server = aFolder.server; >+ // if the account has been removed, we're going to ignore this notification. Capitalize >+ try { >+ acctMgr.FindServer(server.username, server.hostName, server.type); >+ } >+ catch(ex) {dump(ex); return;} >+ spaces on emtpy line ^^^ As the exception is expected, maybe it's not need to dump it
Assignee | ||
Comment 6•15 years ago
|
||
fix checked in, with nits addressed.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [has patch for review]
You need to log in
before you can comment on or make changes to this bug.
Description
•