Bug #2745
closedMail::Message turns " \n" into " "
0%
Description
Hi,
The text that I passed to SetBody() contained some lines with \" \n", and in the quoted-printable mail it gets replaced by " =\", in effect removing my \n.
I'm having to guess that you assume this is flowed text, but there is no format=flowed in the message. In my case it was actually the database containing something that ended with a space for some reason, so I should just trim that, but it was unexpected behavior for me.
If you want to support flowed text can I suggest that you flow the text instead breaking up the long line after the space, and adding the proper headers?
Kurt
Updated by Koen Deforche over 10 years ago
- Status changed from New to Rejected
- Assignee set to Koen Deforche
Hey,
As far as I understand, quoted-printable should be a loss-less encoding, except for this aspect.
I just verified this on this site: http://www.webatic.com/run/convert/qp.php that indeed that is the case:
This line ends with '\n'.
This line ends with ' \n'
This line does not really end but keeps on going, over 72 characters, which is really long.
I do not think that other encodings can be used instead; a binary encoding would probably suffer from other issues to transport the textual message.
Regards,
koen
Updated by Kurt Roeckx over 10 years ago
The proper way to do this in quoted-printable is by changing the \" \n\" to "=20\n".
Updated by Koen Deforche over 10 years ago
- Status changed from Rejected to Resolved
Hey Kurt,
Ah! We didn't realize. A fix is on its way.
Regards,
koen
Updated by Koen Deforche over 10 years ago
- Status changed from Resolved to Closed