mikel/mail — pull request #348 by mreinsch (2012-02-08 08:33:02+00:00)
Title: fixed an issue with long strings getting wrapped when using base64 encoding

For long base64 encoded strings in the From field (for instance), the encoded string was divided in several chunks, such as:

=?UTF-8?B?VHJhc2ggLSDmraPmsJfjgpLjgrTjg5/nrrHjgavnp7vli5XjgZfjgZ/jgorj?= =?UTF-8?B?gIHnl5vjgb/jgafmrbvjgawgW0Rvb3JrZWVwZXIgU1RBR0lOR10=?=

This is causing issues with several mail clients (including Apple's mail.app and Thunderbird) not showing the From name correctly. I assume this is because the splitting does not respect the character boundaries (i.e. each chunk cannot be decoded individually).

By not splitting the encoded string in chunks, the From name is shown correctly. This is the change in this pull request.