moved email headers to their own class