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 MsgMoveMessage(destFolder){  try {    // get the msg folder we're moving messages into    destUri = destFolder.getAttribute('id');    destResource = RDF.GetResource(destUri);    destMsgFolder = destResource.QueryInterface(Components.interfaces.nsIMsgFolder);    // we don't move news messages, we copy them    if (isNewsURI(gDBView.msgFolder.URI)) {      gDBView.doCommandWithFolder(nsMsgViewCommandType.copyMessages, destMsgFolder);    }    else {      SetNextMessageAfterDelete();      gDBView.doCommandWithFolder(nsMsgViewCommandType.moveMessages, destMsgFolder);    }  }  catch (ex) {    dump("MsgMoveMessage failed: " + ex + "\n");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5427bfe536c69b6908edc02516f4a8e853293fbc/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js