rem: folder = item.QueryInterface(Components.interfaces.nsIMsgFolder); if(folder) 
add: if(property.GetUnicode() == "TotalMessages" || property.GetUnicode() == "TotalUnreadMessages") 
context: 	OnItemIntPropertyChanged: function(item, property, oldValue, newValue)	{		if(property.GetUnicode() == "TotalMessages" || property.GetUnicode() == "TotalUnreadMessages")		{			folder = item.QueryInterface(Components.interfaces.nsIMsgFolder);			if(folder)			{				var folderResource = folder.QueryInterface(Components.interfaces.nsIRDFResource);				if(folderResource)				{					var folderURI = folderResource.Value;					var currentLoadedFolder = GetThreadTreeFolder();					var currentURI = currentLoadedFolder.getAttribute('ref');					if(currentURI == folderURI)					{						UpdateStatusMessageCounts(folder);					}				}			}		}	},
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/0a24489bd21f0996f9fbe7a25a358a85433b516e/msgMail3PaneWindow.js/buggy/mailnews/base/resources/content/msgMail3PaneWindow.js