Project

General

Profile

Actions

Bug #2745

closed

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

Added by Kurt Roeckx over 10 years ago. Updated over 10 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

Actions #1

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

Actions #2

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".

Actions #3

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

Actions #4

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF