Metadata.from email drops from raw validation errors when unparsed headers are present
Metadata.from email drops from raw validation errors when unparsed headers are present: a task in repo2rlenv-swe-next (Harbor dataset). When calling Metadata.from email(data, validate=True) (or without validate , which defaults to True ), the raised ExceptionGroup only contains errors for headers…
The task
When calling `Metadata.from_email(data, validate=True)` (or without `validate`, which defaults to `True`), the raised `ExceptionGroup` only contains errors for headers that couldn't be parsed (e.g., duplicate single-value fields or unrecognized field names). Errors reported by the internal `from_raw` validation step…
Part of FineEnvs/repo2rlenv-swe-next.