Closed Bug 98722 Opened 24 years ago Closed 23 years ago

mail js code assumes multiselection folder pane

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows 95
defect
Not set
trivial

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: neil, Assigned: sspitzer)

Details

My understanding is that the folder pane is single selection. This means that code along these lines (this function in commandglue.js is actually redundant) function GetSelectedFolderResource() { var folderOutliner = GetFolderOutliner(); var startIndex = {}; var endIndex = {}; folderOutliner.outlinerBoxObject.selection.getRangeAt(0, startIndex, endIndex); return GetFolderResource(folderOutliner, startIndex.value); } could actually be written function GetSelectedFolderResource() { var folderOutliner = GetFolderOutliner(); return GetFolderResource(folderOutliner, folderOutliner.currentIndex); } Where you compare e.g. startIndex >= 0 you can use currentIndex there as well. Many functions call GetSelectedFolders not realising that it returns one folder. These functions could all be rewritten and the loops removed.
Sometime in the future we'll want to support multiple selection of folders. This was to lessen the pain for that day (forwards compability).
Giving the comment #1, shouldn't this bug have been closed a long time ago ? It has not been touched since 2001-09-07
Invalid because the right-click code now depends on this behaviour.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
QA Contact: esther → stephend
verified. thanks for the explanation, neil
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.