Done here: https://github.com/hypothesis/h/tree/email-notifications-4-3