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 #107

Closed
wneessen opened this issue Jan 28, 2023 · 1 comment · Fixed by #108
Closed

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

wneessen opened this issue Jan 28, 2023 · 1 comment · Fixed by #108
Assignees
Labels
enhancement New feature or request WIP Work is in progress

Comments

@wneessen
Copy link
Owner

Is your feature request related to a problem? Please describe.

For the OpenPGP middleware we are currently working on, we need more ways to interact with mail parts. For PGP/Inline for example, we can only support Plain text mails. Therefore we need a way to delete alternative body parts (like text/html).

This ticket does not yet provide what is all needed, so it will be used as collective issue for all enhancements that are going to be developed.

Describe the solution you'd like

We need ways to interact with/modify body parts.

Describe alternatives you've considered

No response

Additional context

No response

@wneessen wneessen added the enhancement New feature or request label Jan 28, 2023
@wneessen wneessen self-assigned this Jan 28, 2023
@wneessen wneessen added the WIP Work is in progress label Jan 28, 2023
wneessen added a commit that referenced this issue Jan 28, 2023
This PR introduces a new struct field for the message parts: `del`

If the del flag is set to `true`, the msgWriter will ignore this part during the writing process.

Additionally, the `part` has now a `Delete` method that lets the user mark the part as deleted

This allows middleware to take further control of the Msg and is part of #107
@wneessen wneessen linked a pull request Jan 28, 2023 that will close this issue
@wneessen wneessen reopened this Jan 28, 2023
@wneessen
Copy link
Owner Author

Closing this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request WIP Work is in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant