wneessen / go-mail

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

Add EML parser #249

Closed wneessen closed 2 months ago

wneessen commented 2 months ago

This PR introduces an EML parser to go-mail. It allows to read generic EML data from a file, a string or a reader into a go-mail Msg struct. It supports all types of message parts and encodings. It should be able to recognize Mulitpart messages as well as attachments and embeds (inline attachments).

This PR closes #145

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 86.95652% with 33 lines in your changes missing coverage. Please review.

Project coverage is 85.21%. Comparing base (d8a3d0b) to head (7e4bb00).

Files Patch % Lines
eml.go 86.41% 18 Missing and 15 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #249 +/- ## ========================================== + Coverage 85.01% 85.21% +0.20% ========================================== Files 24 25 +1 Lines 1808 2056 +248 ========================================== + Hits 1537 1752 +215 - Misses 160 178 +18 - Partials 111 126 +15 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.