rem: var preselectedFolder = GetFirstSelectedMsgFolder(); 
add: var preselectedFolder = GetFirstSelectedMsgFolder(); 
context: function MsgSearchMessages() {	var preselectedFolder = GetFirstSelectedMsgFolder();    window.openDialog("chrome://messenger/content/SearchDialog.xul", "SearchMail", "chrome,resizable", { folder: preselectedFolder });}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/98f8dba7b96019d33eaa1162fb11dc98138a445f/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js