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

Introducing Msg part deletion #108

Conversation

wneessen
Copy link
Owner

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.

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
Added a test for the `Part.Delete` method
@wneessen wneessen linked an issue Jan 28, 2023 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

Merging #108 (c602ba1) into main (91bfed3) will increase coverage by 0.08%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #108      +/-   ##
==========================================
+ Coverage   80.66%   80.74%   +0.08%     
==========================================
  Files          20       20              
  Lines        1836     1844       +8     
==========================================
+ Hits         1481     1489       +8     
  Misses        257      257              
  Partials       98       98              
Impacted Files Coverage Δ
msg.go 86.65% <100.00%> (+0.10%) ⬆️
msgwriter.go 86.14% <100.00%> (+0.06%) ⬆️
part.go 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@wneessen wneessen merged commit 3c0f5d0 into main Jan 28, 2023
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.

Provide more ways for middleware to interact with mail parts
2 participants