zend-mail
zend-mail copied to clipboard
tests: Mail\Message produced output not usable by Storage\Message
this shows the problem zend-mail is having:
mail created with Mail\Message and serialized into raw
and then loaded with Storage\Message causes parse error if the $text contains double unix newlines (\n\n).
$text = "Hello, bödi tekst\n\nBye";
$part = new Mime\Part($text);
$part->type = 'text/plain';
$part->charset = 'UTF-8';
$mime = new Mime\Message();
$mime->addPart($part);
$message = new Mail\Message();
$message->setEncoding('UTF-8');
$message->setBody($text);
$raw = $message->toString();
$message = new Storage\Message(['raw' => $raw]);
this throws on $message = new Storage\Message(['raw' => $raw]);
`
This repository has been moved to laminas/laminas-mail. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow:
- Squash all commits in your branch (
git rebase -i origin/{branch}) - Make a note of all changed files (`git diff --name-only origin/{branch}...HEAD
- Run the laminas/laminas-migration tool on the code.
- Clone laminas/laminas-mail to another directory.
- Copy the files from the second bullet point to the clone of laminas/laminas-mail.
- In your clone of laminas/laminas-mail, commit the files, push to your fork, and open the new PR. We will be providing tooling via laminas/laminas-migration soon to help automate the process.
This repository has been closed and moved to laminas/laminas-mail; a new issue has been opened at https://github.com/laminas/laminas-mail/issues/43.