wneessen / go-mail

📧 Easy to use, yet comprehensive library for sending mails with Go
https://go-mail.dev
MIT License
571 stars 44 forks source link

Introducing Msg part deletion #108

Closed wneessen closed 1 year ago

wneessen commented 1 year ago

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.

codecov-commenter commented 1 year ago

Codecov Report

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

:mega: 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%) :arrow_up:
msgwriter.go 86.14% <100.00%> (+0.06%) :arrow_up:
part.go 100.00% <100.00%> (ø)

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