Project

General

Profile

Actions

Bug #2745

closed
KR KD

Mail::Message turns " \n" into " "

Bug #2745: Mail::Message turns " \n" into " "

Added by Kurt Roeckx over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
03/01/2014
Due date:
% Done:

0%

Estimated time:

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

KD Updated by Koen Deforche over 12 years ago Actions #1

  • 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

KR Updated by Kurt Roeckx over 12 years ago Actions #2

The proper way to do this in quoted-printable is by changing the " \n" to "=20\n".

KD Updated by Koen Deforche over 12 years ago Actions #3

  • Status changed from Rejected to Resolved

Hey Kurt,

Ah! We didn't realize. A fix is on its way.

Regards,
koen

KD Updated by Koen Deforche over 12 years ago Actions #4

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom