add: else { var isImap = (treeitem.getAttribute('ServerType') == "imap"); if (isImap) { var uri = treeitem.getAttribute("id"); var folder = GetMsgFolderFromUri(uri); if (folder) { var imapFolder = folder.QueryInterface(Components.interfaces.nsIMsgImapMailFolder); if (imapFolder) { imapFolder.PerformExpand(msgWindow); } } } } 
context: function FolderPaneOnClick(event){	debug("in FolderPaneClick()\n");    var targetclass = event.target.getAttribute('class');    debug('targetclass = ' + targetclass + '\n');    if (targetclass == 'tree-cell-twisty') {        // The twisty is nested three below the treeitem:        // <treeitem>        //   <treerow>        //     <treecell>        //         <titledbutton class="tree-cell-twisty"> <!-- anonymous -->        var treeitem = event.target.parentNode.parentNode.parentNode;		var open = treeitem.getAttribute('open');		if(open == "true") {			//dump("twisty open\n");			var item = event.target.parentNode.parentNode.parentNode;			if (item.nodeName == "treeitem") {				var isServer = (treeitem.getAttribute('IsServer') == "true");				if (isServer) {	    			var uri = treeitem.getAttribute("id");					var server = GetServer(uri);					if (server) {						server.PerformExpand(msgWindow);					}				}			}		}    }	else if(event.detail == 2)	{		var item = event.target.parentNode.parentNode;		if (item.nodeName == "treeitem")			FolderPaneDoubleClick(item);	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/06dbb8d51243da101f42dd9cd5e6dbf45646acda/msgMail3PaneWindow.js/clean/mailnews/base/resources/content/msgMail3PaneWindow.js