rem: var messageList = tree.selectedItems; 
add: var messageList = ConvertDOMListToResourceArray(tree.selectedItems); 
context: function MsgMoveMessage(destFolder){	// Get the id for the folder we're copying into    destUri = destFolder.getAttribute('id');	dump(destUri);	var tree = GetThreadTree();	if(tree)	{		//Get the selected messages to copy		var messageList = tree.selectedItems;		//get the current folder		var nextMessage = GetNextMessageAfterDelete(messageList);		var srcFolder = GetThreadTreeFolder();		messenger.CopyMessages(tree.database, srcFolder, destFolder, messageList, true);		SelectNextMessage(nextMessage);	}	}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/1038bd68e3102cdd1cf7c3948945302647de6281/widgetglue.js/buggy/mailnews/base/resources/content/widgetglue.js