rem: dump("tree is valid\n"); 
add: var srcFolder = GetThreadTreeFolder();   if (fromToolbar) { uri = srcFolder.getAttribute('id');  if (uri.substring(0,6) == "news:/") {  return; } } dump("tree is valid\n"); 
context: function MsgDeleteMessage(){  dump("\nMsgDeleteMessage from XUL\n");  var tree = GetThreadTree();  if(tree) {    dump("tree is valid\n");	//get the selected elements    var messageList = tree.getElementsByAttribute("selected", "true");	//get the current folder	var srcFolder = GetThreadTreeFolder();    messenger.DeleteMessages(tree, srcFolder, messageList);  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ea91269dfa855fe70bfaa58fcb3b42472e4c6e9c/widgetglue.js/buggy/mailnews/base/resources/content/widgetglue.js