Initial revision of the mail parser.
Use internal header parser.