rem: var picker = document.getElementById(pickerID); var msgfolder = GetMsgFolderFromUri(uri, true);  if (!msgfolder) return;  var selectedValue = null; var serverName;  if (msgfolder.isServer) selectedValue = msgfolder.name; else { if (msgfolder.server) serverName = msgfolder.server.prettyName; else { dump("Can't find server for " + uri + "\n"); serverName = "???"; }  if (pickerID == "runFiltersFolder") selectedValue = msgfolder.name; else { if (!gMessengerBundle) gMessengerBundle = document.getElementById("bundle_messenger"); selectedValue = gMessengerBundle.getFormattedString("verboseFolderFormat", [msgfolder.name, serverName]); } }  picker.setAttribute("label",selectedValue); picker.setAttribute("uri",uri); 
add: SetFolderPickerElement(uri, document.getElementById(pickerID)); 
context: function SetFolderPicker(uri,pickerID){  var picker = document.getElementById(pickerID);  var msgfolder = GetMsgFolderFromUri(uri, true);  if (!msgfolder)     return;  var selectedValue = null;  var serverName;  if (msgfolder.isServer)    selectedValue = msgfolder.name;  else {    if (msgfolder.server)      serverName = msgfolder.server.prettyName;    else {     dump("Can't find server for " + uri + "\n");     serverName = "???";    }     if (pickerID == "runFiltersFolder")       selectedValue = msgfolder.name;    else {      if (!gMessengerBundle)        gMessengerBundle = document.getElementById("bundle_messenger");      selectedValue = gMessengerBundle.getFormattedString("verboseFolderFormat",        [msgfolder.name, serverName]);    }  }  picker.setAttribute("label",selectedValue);  picker.setAttribute("uri",uri);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4a95f3d489151db27fe9745922f9dd0ca4177049/msgFolderPickerOverlay.js/clean/mailnews/base/resources/content/msgFolderPickerOverlay.js