Moved flag_mail_message scripts to Triggers.