Bug 464714 - navigation doesn't move across folders to next unread message, r=bienvenu
authorJoey Minta <jminta@gmail.com>
Thu, 13 Nov 2008 17:15:29 -0500
changeset 1099 9b38848f192a10e4a991d0307c073d39a21950e3
parent 1098 c63398e7c21c143205a90c73a3d271436808fe2c
child 1100 9346f93d9620f5e7254c4649186df9f37dfd31f2
push idunknown
push userunknown
push dateunknown
reviewersbienvenu
bugs464714
Bug 464714 - navigation doesn't move across folders to next unread message, r=bienvenu
mail/base/content/msgMail3PaneWindow.js
--- a/mail/base/content/msgMail3PaneWindow.js
+++ b/mail/base/content/msgMail3PaneWindow.js
@@ -1251,16 +1251,21 @@ function SetNextMessageAfterDelete()
     // was moved or deleted from the folder.
     gThreadPaneDeleteOrMoveOccurred = true;
     gNextMessageViewIndexAfterDelete = treeSelection.currentIndex - NumberOfSelectedMessagesAboveCurrentIndex(treeSelection.currentIndex);
   }
   else
     gNextMessageViewIndexAfterDelete = treeSelection.currentIndex;
 }
 
+function SelectFolder(folderUri)
+{
+  gFolderTreeView.selectFolder(GetMsgFolderFromUri(folderUri));
+}
+
 function SelectMessage(messageUri)
 {
   var msgHdr = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri);
   if (msgHdr)
     gDBView.selectMsgByKey(msgHdr.messageKey);
 }
 
 function ReloadMessage()