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

Add GetGenHeader to Msg #57

Closed wneessen closed 1 year ago

wneessen commented 1 year ago

For Middlware to act on generic headers, we need to provide a way to access them. Msg.GetGenHeader() returns the value of the requested header of the Msg.

codecov-commenter commented 1 year ago

Codecov Report

Merging #57 (da130c0) into main (664aca5) will increase coverage by 0.02%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
+ Coverage   84.18%   84.20%   +0.02%     
==========================================
  Files          11       11              
  Lines        1258     1260       +2     
==========================================
+ Hits         1059     1061       +2     
  Misses        137      137              
  Partials       62       62              
Impacted Files Coverage Δ
msg.go 86.71% <100.00%> (+0.04%) :arrow_up:

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