feat(modify): new modifier `add_header`
Partially addresses #158
Description
This PR adds a new modifier add_header which allows arbitrary headers to be added to a message in the pipeline.
Use Case
A practical use case is to inject the X-SES-FROM-ARN header before forwarding the message to AWS SES to control which identity will be used to verify the sender domain.
See reference here
@foxcpp thanks for you review (and for creating maddy!)
I didn't realize the spec permitted fields appearing multiple times. I've adapted the code and tests for that
btw I'm happy to also implement other variations of the modifier, eg: upsert_header remove_header if you think they could be useful
@foxcpp any update on this PR?
Interested in this feature as well. Hope it gets merged :)