rem: var tree = GetThreadTree(); 
context: function MsgDeleteMessage(reallyDelete, fromToolbar){	if(reallyDelete)		dump("reallyDelete\n");	var srcFolder = GetLoadedMsgFolder();	var tree = GetThreadTree();	// if from the toolbar, return right away if this is a news message	// only allow cancel from the menu:  "Edit | Cancel / Delete Message"	if (fromToolbar)	{		var folderResource = srcFolder.QueryInterface(Components.interfaces.nsIRDFResource);		var uri = folderResource.Value;		//dump("uri[0:6]=" + uri.substring(0,6) + "\n");		if (uri.substring(0,6) == "news:/")		{			//dump("delete ignored!\n");			return;		}	}	dump("tree is valid\n");	//get the selected elements	var compositeDataSource = GetCompositeDataSource("DeleteMessages");	var messages = GetSelectedMessages();	SetNextMessageAfterDelete(null, true);	DeleteMessages(compositeDataSource, srcFolder, messages, reallyDelete);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ec5ce4701cc73b5c0bd9f95c73f677705ee66775/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js