Skip to content

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.
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