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