Updated email processing lib