rem: folder = item.QueryInterface(Components.interfaces.nsIMsgFolder); 
add: var folder = item.QueryInterface(Components.interfaces.nsIMsgFolder); 
context: 	OnItemIntPropertyChanged: function(item, property, oldValue, newValue)	{		var currentLoadedFolder = GetThreadTreeFolder();		var currentURI = currentLoadedFolder.getAttribute('ref');		//if we don't have a folder loaded, don't bother.		if(currentURI)		{			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;						if(currentURI == folderURI)						{							UpdateStatusMessageCounts(folder);						}					}				}			}		}	},
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/aa26ea7210202a394b5cf3b7f0a9a735ad86e236/msgMail3PaneWindow.js/clean/mailnews/base/resources/content/msgMail3PaneWindow.js