Why don't you use the script to move the message after you have processed it?