swiftmailer/swiftmailer — pull request #190 by aschempp (2012-04-26 17:04:19+00:00)
Title: Fix email subject with special characters (e.g. UTF-8) in Outlook

Following up & fixing #70, #79 and #185. Outlook 2003 and later does not correctly handle "folding" in the subject, resulting in a totally broken emails (see http://cloud.iserv.ch/G9GF).

I removed the code folding entirely. Interesting is that "folding" is actually only applied to strings that need encoding, that is why the issue never appeared with ASCII-only subjects and only happens if your subject happens to match a certain string length where the encoded part is folded.

This might also be threaded as a SwiftMailer bug, but because it was not taken care of as of now, I think the best solution (to support Outlook) is not to apply it on encoding either.