rem: if(reallyDelete) dump("reallyDelete\n"); var srcFolder = GetLoadedMsgFolder();   if (fromToolbar) { var folderResource = srcFolder.QueryInterface(Components.interfaces.nsIRDFResource); var uri = folderResource.Value;  if (uri.substring(0,6) == "news:/") {  return; } } dump("tree is valid\n");  
add: if(reallyDelete) dump("reallyDelete\n"); var srcFolder = GetLoadedMsgFolder();   if (fromToolbar) { var folderResource = srcFolder.QueryInterface(Components.interfaces.nsIRDFResource); var uri = folderResource.Value;  if (uri.substring(0,6) == "news:/") {  return; } } dump("tree is valid\n");  
context: function MsgDeleteMessage(reallyDelete, fromToolbar){	if(reallyDelete)		dump("reallyDelete\n");	var srcFolder = GetLoadedMsgFolder();	// 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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b28aee4dad0045eeeca0eac2603313128acc9c86/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js