rem: msgHdr = messenger.messageServiceFromURI(loadedMessage).messageURIToMsgHdr(loadedMessage); 
add: msgHdr = messenger.msgHdrFromURI(loadedMessage); 
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=application\/x-message-display/.test(loadedMessage))) && IsCurrentLoadedFolder(folder))  {    // 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)    var msgHdr = null;    if (GetNumSelectedMessages() == 1)      msgHdr = messenger.messageServiceFromURI(loadedMessage).messageURIToMsgHdr(loadedMessage);    gMessageNotificationBar.setJunkMsg(msgHdr);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fe07aedeea0c9be3af990dba4844697f2a13c40e/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js