You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the mails I receive, I noticed some bugs with different mail clients. They all choke on the fact that PHPMailer RFC1342-encodes References. It creates headers like this (with personal data x'ed):
I don't see why References need to be RFC1342-encoded at all.
K-9 chokes on it and does not recognize mails belonging together. Apple Mail chokes on it and does create a completely wrong References header when replying. Other mail clients
The text was updated successfully, but these errors were encountered:
The reason it needs encoding is that it contains lines that are longer than 76 chars and so needs to be folded, however, regular folding requires spaces to be present in the original value, and if the value itself is longer than that, it's not possible to fold it without corrupting the value. RFC2047 encoding provides a way of folding lines without introducing potentially corrupting spaces. See #1525 and #1840 for a much more in-depth discussion of this problem. In there you'll note that Apple Mail does the same thing at 998 chars; the limit is lower in PHP because the standard mail() function can corrupt lines longer than about 65 chars.
I see your point. I didn't know your goal was to limit to 76 chars.
I will close this and file bugs for mail clients that choke on this Q-encoding.
I also open another issue, because the current behavior can be improved. #1878
Looking at the mails I receive, I noticed some bugs with different mail clients. They all choke on the fact that PHPMailer RFC1342-encodes References. It creates headers like this (with personal data x'ed):
I don't see why References need to be RFC1342-encoded at all.
K-9 chokes on it and does not recognize mails belonging together. Apple Mail chokes on it and does create a completely wrong References header when replying. Other mail clients
The text was updated successfully, but these errors were encountered: