Closed dhia-gharsallaoui closed 1 year ago
100% agreed. I've already instroduced Msg.GetGenHeader()
in 0.2.9 to get access to the Msg headers and am currently working on implementing similar getters for the body parts.
Is there anyway that I could help you to get it out soon? I will be happy to assist if needed always.
Thanks for the offer! Appreciated! I'm almost done with the body parts, only the test coverage is missing. Probably done today or tomorrow.
Hmm, would you need access to the attachments as well? I've left them out for now but if you need them, maybe you want to start working on that? You can check out the https://github.com/wneessen/go-mail/tree/60-expose-msg-fields branch to see what I am currently doing for the body parts
Is your feature request related to a problem? Please describe.
In order to use
middlewares
we need to have access to theMsg
fields. For example, in my use case I want to addOpenPGP
support so I need to manipulate theparts
of Msg.Describe the solution you'd like
I propose either to make
Msg
field public. Or add theirs Get and Set methods. WDYT?Describe alternatives you've considered
No response
Additional context
No response