fixed some dumb errors in email_handler post action