Added support for purging the email log.