rem: var compositeDataSource = GetCompositeDataSource("Copy"); var messages = GetSelectedMessages(); 
add: if(srcFolder) { var compositeDataSource = GetCompositeDataSource("Copy"); var messages = GetSelectedMessages(); 
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();	var compositeDataSource = GetCompositeDataSource("Copy");	var messages = GetSelectedMessages();	CopyMessages(compositeDataSource, srcFolder, destMsgFolder, messages, false);	}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/7bf8ad0546cfb746319868c13255ee603cae8511/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js