context: function HandleJunkStatusChanged(folder){  // this might be the stand alone window, open to a message that was  // and attachment (or on disk), in which case, we want to ignore it.  var loadedMessage = GetLoadedMessage();  if (loadedMessage && (!(/type=x-message-display/.test(loadedMessage))) && IsCurrentLoadedFolder(folder))  {    var messageURI = GetLoadedMessage();    // if multiple message are selected    // and we change the junk status    // we don't want to show the junk bar    // (since the message pane is blank)    if (messageURI && (GetNumSelectedMessages() == 1))    {      // we may be forcing junk mail to be rendered with sanitized html. In that scenario, we want to       // reload the message if the status has just changed to not junk.       var msgHdr = messenger.messageServiceFromURI(messageURI).messageURIToMsgHdr(messageURI);      SetUpJunkBar(msgHdr);      if (msgHdr)      {        var sanitizeJunkMail = gPrefBranch.getBoolPref("mailnews.display.sanitizeJunkMail");        if (sanitizeJunkMail) // only bother doing this if we are modifying the html for junk mail....        {          // we used to only reload the message if we were toggling the message to NOT JUNK from junk          // but it can be useful to see the HTML in the message get converted to sanitized form when a message          // is marked as junk.          MsgReload();        }      }    }    else      SetUpJunkBar(null);  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/18904a2a7f862ee7b7642b464f92ec2a33798a98/mailWindowOverlay.js/buggy/mail/base/content/mailWindowOverlay.js