} 
} 
function MsgDeleteFolder(){    var folderTree = GetFolderTree();    var selectedFolders = GetSelectedMsgFolders();    for (var i = 0; i < selectedFolders.length; i++)    {        var selectedFolder = selectedFolders[i];        var folderResource = selectedFolder.QueryInterface(Components.interfaces.nsIRDFResource);        var specialFolder = GetFolderAttribute(folderTree, folderResource, "SpecialFolder");        if (specialFolder != "Inbox" && specialFolder != "Trash")        {            var folder = selectedFolder.QueryInterface(Components.interfaces.nsIMsgFolder);            if (folder.flags & MSG_FOLDER_FLAG_VIRTUAL)            {                if (gCurrentVirtualFolderUri == folderResource.Value)                  gCurrentVirtualFolderUri = null;                var parentResource = selectedFolder.parent.QueryInterface(Components.interfaces.nsIRDFResource);                messenger.DeleteFolders(GetFolderDatasource(), parentResource, folderResource);                continue;            }            var protocolInfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + selectedFolder.server.type].getService(Components.interfaces.nsIMsgProtocolInfo);            // do not allow deletion of special folders on imap accounts            if ((specialFolder == "Sent" ||                 specialFolder == "Drafts" ||                 specialFolder == "Templates" ||                (specialFolder == "Junk" && !CanRenameDeleteJunkMail(GetSelectedFolderURI()))) &&                !protocolInfo.specialFoldersDeletionAllowed)            {                var errorMessage = gMessengerBundle.getFormattedString("specialFolderDeletionErr",                                                    [specialFolder]);                var specialFolderDeletionErrTitle = gMessengerBundle.getString("specialFolderDeletionErrTitle");                promptService.alert(window, specialFolderDeletionErrTitle, errorMessage);                continue;            }               else if (isNewsURI(folderResource.Value))            {                var unsubscribe = ConfirmUnsubscribe(selectedFolder);                if (unsubscribe)                    UnSubscribe(selectedFolder);            }            else            {                var parentResource = selectedFolder.parent.QueryInterface(Components.interfaces.nsIRDFResource);                messenger.DeleteFolders(GetFolderDatasource(), parentResource, folderResource);            }        }    }}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/634044202ad0e89ed5e63759bb283c8d4f090335/mail3PaneWindowCommands.js/buggy/mail/base/content/mail3PaneWindowCommands.js