rem: messenger.EmptyTrash(tree.database, folder); 
add: messenger.EmptyTrash(tree.database, folder.resource); 
context: function MsgEmptyTrash() {    var tree = GetFolderTree();    if (tree)    {        var folderList = tree.selectedItems;        if (folderList)        {            var folder;            folder = folderList[0];            if (folder)			{                var trashUri = GetSelectTrashUri(folder);                if (trashUri)                {                    var trashElement = document.getElementById(trashUri);                    if (trashElement)                    {                        dump ('found trash folder\n');                        trashElement.setAttribute('open','');                    }                }				if(IsSpecialFolderSelected('Trash'))				{                    tree.clearItemSelection();					RefreshThreadTreeView();				}                messenger.EmptyTrash(tree.database, folder);			}        }    }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/1038bd68e3102cdd1cf7c3948945302647de6281/widgetglue.js/buggy/mailnews/base/resources/content/widgetglue.js