Parse RFC822-compliant (and similar) headers.