Closed
Bug 34074
Opened 26 years ago
Closed 25 years ago
Pop3 - Needs to reselect the previously selected message after compacting the folder
Categories
(SeaMonkey :: MailNews: Message Display, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: jefft, Assigned: naving)
References
Details
Attachments
(5 files)
|
17.75 KB,
patch
|
Details | Diff | Splinter Review | |
|
18.05 KB,
patch
|
Details | Diff | Splinter Review | |
|
12.70 KB,
patch
|
Details | Diff | Splinter Review | |
|
14.91 KB,
patch
|
Details | Diff | Splinter Review | |
|
11.25 KB,
patch
|
Details | Diff | Splinter Review |
We need to reselect the folder and previous selected message after compacting
the pop3 folder.
Comment 2•26 years ago
|
||
Not beta2 stopper, marking M18. Please add beta2 keyword if you disagree.
Target Milestone: M16 → M18
Comment 3•25 years ago
|
||
reassigning jefft's bugs to naving
Assignee: jefft → naving
Status: ASSIGNED → NEW
Updated•25 years ago
|
Target Milestone: M18 → ---
| Assignee | ||
Comment 7•25 years ago
|
||
| Assignee | ||
Comment 8•25 years ago
|
||
The fix is to save the first selected message before doing compact and
then after the compact is over; if the folder is the open then reroot the
folder and restore the selection of the message. Note this is needed
only for local folders so I have added mCompactCompletedAtom to local
folder only and the notification is also only for local folder.
| Assignee | ||
Comment 9•25 years ago
|
||
| Assignee | ||
Comment 10•25 years ago
|
||
The new patch makes it work for cases not covered before. david, please review.
Comment 11•25 years ago
|
||
this seems needlessly complicated. Isn't there a way to avoid changing all the
GetDatabase calls? What I expected to see was js code checking if the currently
loaded folder was the one that was just compacted (in the notification handler)
and in that case, do the reroot. The code used to work this way - just checking
against the currently loaded folder.
Also, to get the first selected view index, couldn't you just call
mOutlinerSelection->GetCurrentIndex(¤tIndex); ? That gives you what the
focused message is.
| Assignee | ||
Comment 12•25 years ago
|
||
Well there are so many cases to handle
Compact this folder (one folder)
1) can / can't be compacted
these cases are handled in widgetglue.js
Compact All folders
1)currently selected folder can be compacted
2)currently selected folder can't be compacted
In this case there will be no notification from the backend because we
are not doing anything to the currently selected folder
Auto-compact folders
In this case we initiate the compact all for local folders from backend.
so I had to rely on the msgWindow.openFolder to tell us if this is the
folder that is selected on the front end.
Regarding the GetDatabase() calls we should not fire the folderLoaded event
because it does a bunch of things like msgFolder.endFolderLoading() and
other stuff in js that is not needed for compact.
For first selected msg index I will make the change.
Comment 13•25 years ago
|
||
I'm still confused - you can have 10 pop servers with local folders underneath
them, and imap filters can move messages to any of the folders under those pop
servers, can't they? Those are not servers of type none.
Re not firing folder loaded notification, I think it would be better to just
ignore the folder loaded notification, instead of not sending it.
| Assignee | ||
Comment 14•25 years ago
|
||
| Assignee | ||
Comment 15•25 years ago
|
||
So this version v3, is just as you noted in the comment above.
| Assignee | ||
Comment 16•25 years ago
|
||
Comment 17•25 years ago
|
||
Ok, this looks very good, except for one thing - does it work in the case of
having a multiple selection? I.e., if you select one message, and then extend
the selection, do we still reload the correct message? I think the correct way
to actually figure out which message to reload is to find the view index of
nsMsgDBView::m_currentlyDisplayedMsgKey and not to try to deduce it from the
selection.
| Assignee | ||
Comment 18•25 years ago
|
||
Comment 19•25 years ago
|
||
r=cavin.
| Assignee | ||
Comment 20•25 years ago
|
||
fix checked in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 21•25 years ago
|
||
*** Bug 94288 has been marked as a duplicate of this bug. ***
Comment 22•25 years ago
|
||
verified after compaction the previous message is remembered and gets selected
in the thread pane and loaded in the message pane. I also checked having
selected more than one message in the thread pane that after compaction it
remembers to load the correct message that was loaded before compaction.
Tested this with both compact this folder and compact all folders.
Compaction initiated by the preference does not load the message pane but the
thread pane is loaded with previous selection and is not blank like before.
Checked with Navin and he said since this is initiated in the backend that this
was the expected result.
builds:
2001-08-15-06 win98, linux
2001-08-17-04 mac
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•