Moved email parsing to its own class.