Parsing of MIME parts some times failed when there were no headers
present. This is due to the attempt to match the first line unexpectedly
matching the second (since strtok will skip a match at position 0).
This is related to zendframework/zend-mail#19 . While the error generates in Mail\Headers::fromString, it's caused by Mime\Decode::splitMessage parsing this case inconsistently.
I've added a test case using a stripped down version of the message in the referenced issue.
Parsing of MIME parts some times failed when there were no headers present. This is due to the attempt to match the first line unexpectedly matching the second (since strtok will skip a match at position 0).
This is related to zendframework/zend-mail#19 . While the error generates in Mail\Headers::fromString, it's caused by Mime\Decode::splitMessage parsing this case inconsistently.
I've added a test case using a stripped down version of the message in the referenced issue.