rem: var folder = item.QueryInterface(Components.interfaces.nsIMsgFolder); if(folder) { var folderResource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(folderResource) { var folderURI = folderResource.Value; if(currentURI == folderURI) { UpdateStatusMessageCounts(folder); } } } 
add: UpdateStatusMessageCounts(msgWindow.openFolder); 
context:     OnItemIntPropertyChanged: function(item, property, oldValue, newValue) {      var currentLoadedFolder = GetThreadPaneFolder();      if (!currentLoadedFolder) return;      var currentURI = currentLoadedFolder.URI;      //if we don't have a folder loaded, don't bother.      if(currentURI) {        if(property.toString() == "TotalMessages" || property.toString() == "TotalUnreadMessages") {          var folder = item.QueryInterface(Components.interfaces.nsIMsgFolder);          if(folder) {            var folderResource = folder.QueryInterface(Components.interfaces.nsIRDFResource);             if(folderResource) {              var folderURI = folderResource.Value;              if(currentURI == folderURI) {                UpdateStatusMessageCounts(folder);              }            }          }        }            }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e64c8cbf2256a581ebd57870fb368cce30871d44/msgMail3PaneWindow.js/clean/mail/base/content/msgMail3PaneWindow.js