Scripts for email queue and event monitoring