rem: else if (isNewsURI(folderuri)) { var unsubscribe = ConfirmUnsubscribe(msgfolder); if (unsubscribe) { UnSubscribe(msgfolder); } 
add: else if (isNewsURI(folderResource.Value)) { var unsubscribe = ConfirmUnsubscribe(selectedFolder); if (unsubscribe) UnSubscribe(selectedFolder); 
context: function MsgDeleteFolder(){	//get the selected elements	var tree = GetFolderTree();	var folderList = tree.selectedItems;	var i;	var folder, parent;    var specialFolder;	for(i = 0; i < folderList.length; i++)	{		folder = folderList[i];	    folderuri = folder.getAttribute('id');        specialFolder = folder.getAttribute('SpecialFolder');        if (specialFolder != "Inbox" && specialFolder != "Trash")        {            var msgfolder = GetMsgFolderFromURI(folderuri);            var protocolInfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + msgfolder.server.type].getService(Components.interfaces.nsIMsgProtocolInfo);            // do not allow deletion of special folders on imap accounts            if ((specialFolder == "Sent" ||                 specialFolder == "Drafts" ||                 specialFolder == "Templates") &&                !protocolInfo.specialFoldersDeletionAllowed) {                var errorMessage = gMessengerBundle.getFormattedString("specialFolderDeletionErr",                                                    [specialFolder]);                var specialFolderDeletionErrTitle = gMessengerBundle.getString("specialFolderDeletionErrTitle");                promptService.alert(window, specialFolderDeletionErrTitle, errorMessage);                continue;            }               else if (isNewsURI(folderuri)) {              var unsubscribe = ConfirmUnsubscribe(msgfolder);              if (unsubscribe) {                UnSubscribe(msgfolder);              }            }            else {              parent = folder.parentNode.parentNode;	              var parenturi = parent.getAttribute('id');              messenger.DeleteFolders(tree.database,                                    parent.resource, folder.resource);            }        }	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/938770831965cde1ef5c4ce945b768186518efae/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js