mikel/mail — pull request #480 by adamvaughan (2012-12-19 19:15:53+00:00)
Title: Do not collapse multiple quoted-printable lines if the line encodings are not the same.

I came across an issue where I had a subject that was quoted-printable encoded into multiple lines. The encoding in all lines was not the same. In my case the first 3 were encoded B and the last was encoded Q. Decoding the subject line failed due to how multiple lines were being collapsed.

This change makes it so that only adjacent lines that have the same encoding are collapsed together. You can see the spec I added for a clearer example of what I am talking about.

I have tested this on the latest 1.8.7 and 1.9.3. The tests were failing on master, but I did ensure that the same tests failed after my changes.

Thanks,
Adam