rem: if (isNewsURI(folderuri)) { var msgfolder = GetMsgFolderFromURI(folderuri); 
add: var msgfolder = GetMsgFolderFromURI(folderuri); var protocolInfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + msgfolder.server.type].getService(Components.interfaces.nsIMsgProtocolInfo);   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)) { 
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")        {            if (isNewsURI(folderuri)) {              var msgfolder = GetMsgFolderFromURI(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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/5d5db17218f4f6eb8af12d007393e48168880920/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js