Skip to content

Use email.message.Message instead of rolling own (RFC822Message) #101

@dnicolodi

Description

@dnicolodi

pyproject-metadata currently rolls his own serialization of the metadata. The specification says that the metadata serialization format is what is understood by the email.parser module when using the compat32 policy. I think it would therefore be easier and safer to simply use the email.message module to serialize the metadata.

I started working on this but I was sidetracked by the fact that email.message.Message is now described as "legacy" and email.message.EmailMessage did not work for me when using the compat32 policy. I see that @henryiii is putting some work in this package (thanks!!) thus I just wanted to contribute this thought.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions