rem: var messageURI = GetLoadedMessage();     if (messageURI && (GetNumSelectedMessages() == 1)) SetUpJunkBar(messenger.messageServiceFromURI(messageURI).messageURIToMsgHdr(messageURI)); else SetUpJunkBar(null); 
add:   var msgHdr = null; if (GetNumSelectedMessages() == 1) msgHdr = messenger.messageServiceFromURI(loadedMessage).messageURIToMsgHdr(loadedMessage); gMessageNotificationBar.setJunkMsg(msgHdr); 
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))      SetUpJunkBar(messenger.messageServiceFromURI(messageURI).messageURIToMsgHdr(messageURI));    else      SetUpJunkBar(null);  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/6397cf8af97d802b14ed16dfb697c78f03236f62/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js