Skip to content

Conversation

@wneessen
Copy link
Owner

@wneessen wneessen commented Mar 3, 2025

This PR fixes a nil map assignment in the EML parser. This PR closes #446.

wneessen added 3 commits March 3, 2025 10:21
Deleted outdated and redundant EML-related test cases from `eml_test.go`. These tests were either unused, overly specific, or no longer relevant, simplifying the codebase and improving maintainability.
Replaced inline Msg struct initialization with the NewMsg constructor in EMLToMsgFromReader and EMLToMsgFromFile functions. This improves code readability and maintains consistency in Msg struct creation.
This commit introduces a test case ensuring that parsing an EML file and writing the parsed message back to a buffer works as expected. It also includes a sample EML file for testing. This resolves functionality concerns highlighted in issue #446.
@wneessen wneessen linked an issue Mar 3, 2025 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.32%. Comparing base (3978049) to head (baf5162).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #447      +/-   ##
==========================================
- Coverage   94.34%   94.32%   -0.02%     
==========================================
  Files          30       30              
  Lines        3534     3522      -12     
==========================================
- Hits         3334     3322      -12     
  Misses        147      147              
  Partials       53       53              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The SPDX-PackageSupplier was changed to "The go-mail Authors" for consistency. Added annotations for the testdata directory with copyright and license details to improve compliance and clarity.
@wneessen wneessen merged commit 033a85e into main Mar 3, 2025
28 checks passed
@wneessen wneessen deleted the bug/446_emltomsgfromstring-failed-with-attachments branch March 3, 2025 09:42
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.

EMLToMsgFromString failed with attachments

2 participants