Run script when email received. and then run the script.