add:   if (gMsgFolder) { if (gMsgFolder.flags & MSG_FOLDER_FLAG_INBOX) { document.getElementById("folderCheckForNewMessages").setAttribute("hidden", "true"); } }  
context: function hideShowControls(serverType){  var controls = document.getElementsByAttribute("hidable", "true");  var len = controls.length;  for (var i=0; i<len; i++) {    var control = controls[i];    var hideFor = control.getAttribute("hidefor");    if (!hideFor)      throw "this should not happen, things that are hidable should have hidefor set";    var box = getEnclosingContainer(control);    if (!box)      throw "this should not happen, things that are hidable should be in a box";    // hide unsupported server type    // adding support for hiding multiple server types using hideFor="server1,server2"    var hideForBool = false;    var hideForTokens = hideFor.split(",");    for (var j = 0; j < hideForTokens.length; j++) {      if (hideForTokens[j] == serverType) {        hideForBool = true;        break;      }    }    if (hideForBool) {      box.setAttribute("hidden", "true");    }    else {      box.removeAttribute("hidden");    }  }  // hide the priviliges button if the imap folder doesn't have an admin url  // mabye should leave this hidden by default and only show it in this case instead  var imapFolder = gMsgFolder.QueryInterface(Components.interfaces.nsIMsgImapMailFolder);  if (imapFolder)  {    var privilegesButton = document.getElementById("imap.FolderPrivileges");    if (privilegesButton)    {      if (!imapFolder.hasAdminUrl)        privilegesButton.setAttribute("hidden", "true");    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/90d18f2365ecd9a21be4fe74007c425f4232ecd1/folderProps.js/buggy/mailnews/base/resources/content/folderProps.js