rem: destUri = destFolder.getAttribute('id'); destResource = RDF.GetResource(destUri); destMsgFolder = destResource.QueryInterface(Components.interfaces.nsIMsgFolder); 
add: var destUri = destFolder.getAttribute('id'); var destResource = RDF.GetResource(destUri); var destMsgFolder = destResource.QueryInterface(Components.interfaces.nsIMsgFolder); 
context: function MsgCopyMessage(destFolder){    // Get the id for the folder we're copying into    destUri = destFolder.getAttribute('id');    destResource = RDF.GetResource(destUri);    destMsgFolder = destResource.QueryInterface(Components.interfaces.nsIMsgFolder);    var srcFolder = GetLoadedMsgFolder();    if(srcFolder)    {        var compositeDataSource = GetCompositeDataSource("Copy");        var messages = GetSelectedMessages();        CopyMessages(compositeDataSource, srcFolder, destMsgFolder, messages, false);    }    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c1c9a40d8ceda5299f268b730d0dd1d9f4b86425/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js