Skip to content

Comments

Issue #4469 no more mail internet take 5#4605

Open
bschmalhofer wants to merge 8 commits intorel-11_1from
issue-#4469-no_more_mail_internet_take_5
Open

Issue #4469 no more mail internet take 5#4605
bschmalhofer wants to merge 8 commits intorel-11_1from
issue-#4469-no_more_mail_internet_take_5

Conversation

@bschmalhofer
Copy link
Contributor

Rebase the branch on rel-11_1. Squashed the initial two commits as they did closely related things.

get the header object always from MIME::Entity instance
parsing is now done exclusively with MIME::Parser
decoding the transfer encoding is now done with bodyhandle->as_string
consistently pass a string ref to MIME::Parser, as passing an arrayref is deprecated
this is the old default when Mail::Internet was used
one effect is that trailing spaces are removed
'Email' was a Mail::Internet from which the body was available directly.
For the sake of the test we use now the ParserParts object for looping
over the parts.
Only Mail::Internet automatically adds the newlines.
Fix the test by passing the complete string.
the Email was read as an array of lines with the trailing newlines
A header was added without the newline, which broke the header of the mail
The attribute 'Email' was removed, it used to hold an instance of Mail::Internet
Passing a stringref Kernel::System::PostMaster::new() instead of an arrayref.
This avoids the work to join the array into a string.
@bschmalhofer bschmalhofer force-pushed the issue-#4469-no_more_mail_internet_take_5 branch from 949cbf3 to 125ff52 Compare February 19, 2026 13:51
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.

1 participant