rem: var srchFolderUri = dbFolderInfo.getCharPtrProperty("searchFolderUri"); 
add: var srchFolderUri = dbFolderInfo.getCharProperty("searchFolderUri"); 
context: function IsCurrentLoadedFolder(folder){  var msgfolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder);  if(msgfolder)  {    var folderResource = msgfolder.QueryInterface(Components.interfaces.nsIRDFResource);    if(folderResource)    {      var folderURI = folderResource.Value;      var currentLoadedFolder = GetThreadPaneFolder();      if (currentLoadedFolder.flags & MSG_FOLDER_FLAG_VIRTUAL)      {        var msgDatabase = currentLoadedFolder.getMsgDatabase(msgWindow);        var dbFolderInfo = msgDatabase.dBFolderInfo;        var srchFolderUri = dbFolderInfo.getCharPtrProperty("searchFolderUri");        var re = new RegExp("^" + folderURI + "$|^" + folderURI + "\||\|" + folderURI + "$|\|" + folderURI +"\|");        var retval = (currentLoadedFolder.URI.match(re));        return retval;      }      var currentURI = currentLoadedFolder.URI;      return(currentURI == folderURI);    }  }  return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/07721d21511126bc7aeb5044ef636d87feca098c/msgMail3PaneWindow.js/buggy/mailnews/base/resources/content/msgMail3PaneWindow.js