context: function CreateView(originalView){    var msgFolder = GetLoadedMsgFolder();  // extract the sort type, the sort order,   var sortType;  var sortOrder;  var viewFlags;  var viewType;  if (originalView)  {    viewType = originalView.viewType;    viewFlags = originalView.viewFlags;    sortType = originalView.sortType;    sortOrder = originalView.sortOrder;  }  else if (msgFolder)  {    var msgDatabase = msgFolder.getMsgDatabase(msgWindow);    if (msgDatabase)    {      var dbFolderInfo = msgDatabase.dBFolderInfo;      sortType = dbFolderInfo.sortType;      sortOrder = dbFolderInfo.sortOrder;      viewFlags = dbFolderInfo.viewFlags;      viewType = dbFolderInfo.viewType;      msgDatabase = null;      dbFolderInfo = null;   }  }  // create a db view  CreateBareDBView(originalView, msgFolder, viewType, viewFlags, sortType, sortOrder);   var uri;  if (gCurrentMessageUri)    uri = gCurrentMessageUri;  else if (gCurrentFolderUri)    uri = gCurrentFolderUri;  else    uri = null;  SetUpToolbarButtons(uri);  // hook for extra toolbar items  var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);  observerService.notifyObservers(window, "mail:setupToolbarItems", uri);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/3ead8e230bcd0f7a2698ae71d076d3073a8cc53b/messageWindow.js/clean/mailnews/base/resources/content/messageWindow.js