Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more ways for middleware to interact with mail parts #117

Conversation

wneessen
Copy link
Owner

This PR adds functionalities for middlware (in particular the new OpenPGP middleware) to provide more access to the Msg.

In detail:

  • The File type now has additional fields: ContentType, Desc and Enc with corresponding `FileOption´ methods to stear those
  • A new PGPType has been added which can be set as part of the Msg struct using the WithPGPType option method and a SetPGPType setter method
    • 3 PGPTypes have been added: NoPGP, PGPEncrypt and PGPSignature
    • If a PGPType is set, the msgWriter will produce different MIME headers for the content types
  • Msg parts received a description field which will be reflected in the Content-Description header of the part. Corresponding Option-, getter- and setter methods have been added: WithPartContentDescription, GetDescription, SetDescription

@wneessen wneessen merged commit d052289 into main Feb 13, 2023
@wneessen wneessen deleted the feature/107_provide-more-ways-for-middleware-to-interact-with-mail-parts branch February 13, 2023 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant