Closed
Bug 499265
Opened 15 years ago
Closed 14 years ago
Activity manager should coalesce mail move/copy/delete events.
Categories
(Thunderbird :: Mail Window Front End, defect)
Thunderbird
Mail Window Front End
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.0b3
People
(Reporter: standard8, Assigned: bwinton)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
+++ This bug was initially created as a clone of Bug #493397 +++ Lots of standard behaviors (deleting a bunch of mail one at a time), gloda syncing autosynced or moves messages) currently result in the activity manager showing huge long lists of essentially duplicate messages. I think we need to somehow get those things coalesced, so that 100 successive deletion operations are displayed as "100 messages deleted", and so that periodic operations either get summarized ("since we started, 12341 messages indexed") or archived. The con: - coalescing means it becomes impossible to reach in and do something to one of the events in the coalition, such as an eventual undo. "Luckily", our undo story is weak enough that I think we can not bother for TB3. Required implementation for this bug: - user-triggered actions should be grouped by folder, as long as they're contiguous in the activity manager history. So that if I do - delete 1 message from inbox - delete 1 message from inbox - delete 1 message from inbox - delete 1 message from inbox then i switch to todo - delete 1 message from ToDo then back to inbox - delete 1 message from inbox - delete 1 message from inbox that should show up as: - deleted 4 message from inbox (most recent) - delete 1 message from ToDo - deleted 2 messages from inbox The most sensible place to do this it seems would be in http://mxr.mozilla.org/comm-central/source/mail/components/activity/modules/moveCopy.js Blake, could you take this on?
Flags: blocking-thunderbird3+
Assignee | ||
Comment 2•14 years ago
|
||
The message is the same, so I kind of think we should, but they occurred in different folders, so maybe it would be better to change the message to reflect that fact. (i.e. "Deleted 6 messages from Trash"/"Deleted 1 message from Inbox".) (I've got a patch that coalesces delete events, and it should be fairly quick to update to get either behaviour.) Thanks, Blake.
Attachment #385759 -
Flags: ui-review?(clarkbw)
Assignee | ||
Comment 3•14 years ago
|
||
I don't know if this is the cleanest way to do it. It seemed like there was a lot of almost-duplication between the Delete and CopyMove cases. Still, it seems to work. Thanks, Blake.
Attachment #385759 -
Attachment is obsolete: true
Attachment #385830 -
Flags: ui-review?(clarkbw)
Attachment #385759 -
Flags: ui-review?(clarkbw)
Updated•14 years ago
|
Attachment #385830 -
Flags: ui-review?(clarkbw) → ui-review+
Comment 4•14 years ago
|
||
Comment on attachment 385830 [details] [diff] [review] A patch, assuming that Bryan wants me to change the deleted message. ;) yes :)
Assignee | ||
Updated•14 years ago
|
Attachment #385830 -
Flags: review?(bugzilla)
Reporter | ||
Updated•14 years ago
|
Attachment #385830 -
Flags: review?(bugzilla) → review+
Reporter | ||
Comment 5•14 years ago
|
||
Comment on attachment 385830 [details] [diff] [review] A patch, assuming that Bryan wants me to change the deleted message. ;) > let statusText = ''; > // TODO: localize this string I've just noticed this comment. I think it is out of date now, so we can drop it. >-# LOCALIZATION NOTE (deletedMessages): #1 number of messages >-deletedMessages=Deleted #1 message;Deleted #1 messages >+# LOCALIZATION NOTE (deletedMessages): #1 number of messages, #2 folder name >+deletedMessages=Deleted #1 message from #2;Deleted #1 messages from #2 As we are changing the context of the string, we have to change the string name as well - this is so that localisers can notice the fact that we've changed the string. Therefore we can just rename deletedMessages to deletedMessages2 here and in the code. r=Standard8 with that fixed.
Assignee | ||
Comment 6•14 years ago
|
||
(In reply to comment #5) > > // TODO: localize this string > I've just noticed this comment. I think it is out of date now, so we can drop > it. Dropped. > >-deletedMessages=Deleted #1 message;Deleted #1 messages > >+deletedMessages=Deleted #1 message from #2;Deleted #1 messages from #2 > As we are changing the context of the string, we have to change the string > name as well - this is so that localisers can notice the fact that we've > changed the string. Therefore we can just rename deletedMessages to > deletedMessages2 here and in the code. Fixed. > r=Standard8 with that fixed. Excellent, thank you! Later, Blake.
Attachment #385830 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Reporter | ||
Comment 7•14 years ago
|
||
Checked in: http://hg.mozilla.org/comm-central/rev/d971def57e3c
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: Thunderbird 3.0b4 → Thunderbird 3.0b3
You need to log in
before you can comment on or make changes to this bug.
Description
•