rem: var folder = GetMsgFolderFromUri(GetSelectedFolderURI(), false); 
add: var folderURI = GetSelectedFolderURI(); if (!folderURI) return false; var folder = GetMsgFolderFromUri(folderURI, false); 
context: function IsCanSearchMessagesEnabled(){  var folder = GetMsgFolderFromUri(GetSelectedFolderURI(), false);  var isVirtualFolder = folder.flags & MSG_FOLDER_FLAG_VIRTUAL;  return folder.server.canSearchMessages && !isVirtualFolder;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/25efce09e6bbe482575479ea5b7872c708b6062d/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js