add: gMsgWindow.rootDocShell.appType = Components.interfaces.nsIDocShell.APP_TYPE_MAIL; 
context: function selectOnLoad(){    gMsgWindow = Components.classes[msgWindowContractID].createInstance(Components.interfaces.nsIMsgWindow);    gMsgWindow.domWindow = window;    gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager);    gSynchronizeTree = document.getElementById('synchronizeTree');    SortSynchronizePane('folderNameCol', '?folderTreeNameSort');} 
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/6ff991e2898ef85a2e184b23165faa229a6e4a28/msgSynchronize.js/clean/mailnews/base/resources/content/msgSynchronize.js