rem: var folderOutliner = GetFolderOutliner(); var rangeCount = folderOutliner.outlinerBoxObject.selection.getRangeCount(); 
add: var folderTree = GetFolderTree(); var rangeCount = folderTree.treeBoxObject.selection.getRangeCount(); 
context: function GetSelectedFolders(){    var folderArray = [];    var k = 0;    var folderOutliner = GetFolderOutliner();    var rangeCount = folderOutliner.outlinerBoxObject.selection.getRangeCount();    for(var i = 0; i < rangeCount; i++)    {        var startIndex = {};        var endIndex = {};        folderOutliner.outlinerBoxObject.selection.getRangeAt(i, startIndex, endIndex);        for (var j = startIndex.value; j <= endIndex.value; j++)        {            var folderResource = GetFolderResource(folderOutliner, j);            folderArray[k++] = folderResource.Value;        }    }    return folderArray;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/msgMail3PaneWindow.js/clean/mailnews/base/resources/content/msgMail3PaneWindow.js