add: newFolder.prettyName = newName; 
context: function  CreateVirtualFolder(newName, parentFolder, searchFolderURIs, searchTerms, searchOnline){  // ### need to make sure view/folder doesn't exist.  if (searchFolderURIs && (searchFolderURIs != "") && newName && (newName != ""))   {    try    {      var newFolder = parentFolder.addSubfolder(newName);      newFolder.setFlag(MSG_FOLDER_FLAG_VIRTUAL);      var vfdb = newFolder.getMsgDatabase(msgWindow);      var searchTermString = getSearchTermString(searchTerms);      var dbFolderInfo = vfdb.dBFolderInfo;      // set the view string as a property of the db folder info      // set the original folder name as well.      dbFolderInfo.setCharPtrProperty("searchStr", searchTermString);      dbFolderInfo.setCharPtrProperty("searchFolderUri", searchFolderURIs);      dbFolderInfo.setBooleanProperty("searchOnline", searchOnline);      vfdb.summaryValid = true;      vfdb.Close(true);      parentFolder.NotifyItemAdded(newFolder);      var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager);      accountManager.saveVirtualFolders();    }    catch(e)    {      throw(e); // so that the dialog does not automatically close      dump ("Exception : creating virtual folder \n");    }  }  else   {    dump("no name or nothing selected\n");  }   }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d5e1f39d7b47a83ef63b5021a2b4fb35f74d7152/commandglue.js/buggy/mail/base/content/commandglue.js