rem: var msgHdr = messenger.messageServiceFromURI(aMessageURI).messageURIToMsgHdr(aMessageURI); 
add: var msgHdr = messenger.messageServiceFromURI(msgURI).messageURIToMsgHdr(msgURI); 
context: function OnMsgLoaded(folder, aMessageURI){    if (/type=x-message-display/.test(aMessageURI))      SetUpJunkBar(null);    else    {      var msgHdr = messenger.messageServiceFromURI(aMessageURI).messageURIToMsgHdr(aMessageURI);      SetUpJunkBar(msgHdr);    }        var currentMsgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder);    if (!IsImapMessage(aMessageURI))      return;    var imapServer = currentMsgFolder.server.QueryInterface(Components.interfaces.nsIImapIncomingServer);    var storeReadMailInPFC = imapServer.storeReadMailInPFC;    if (storeReadMailInPFC)    {      var messageID;      var copyToOfflineFolder = true;      // look in read mail PFC for msg with same msg id - if we find one,      // don't put this message in the read mail pfc.      var outputPFC = imapServer.GetReadMailPFC(true);      if (msgHdr)      {        messageID = msgHdr.messageId;        if (messageID.length > 0)        {          var readMailDB = outputPFC.getMsgDatabase(msgWindow);          if (readMailDB)          {            var hdrInDestDB = readMailDB.getMsgHdrForMessageID(messageID);            if (hdrInDestDB)              copyToOfflineFolder = false;          }        }      }      if (copyToOfflineFolder)      {        var messages = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);        messages.AppendElement(msgHdr);        res = outputPFC.copyMessages(currentMsgFolder, messages, false /*isMove*/, msgWindow /* nsIMsgWindow */, null /* listener */, false /* isFolder */, false /*allowUndo*/ );      }     }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/9a096f53902ef14a99cc6e091f9ddaa6b381c4a0/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js