#1488603 closed Bugs (fixed)
Incorrect message in the Body
| Reported by: | Cicco0 | Owned by: | |
|---|---|---|---|
| Priority: | 4 | Milestone: | 0.8.1 |
| Component: | Core functionality | Version: | 0.8-rc |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Hi there
When an HTML mail downloaded as EML and imported into Outlook, the e-mail is displayed incorrectly. At certain points of the e-mail a character is replaced with an "=".
Message original in Roundcube:
*
Hi there, I'm a test message.
And again, a test message
I'm a test message?
*
Message in Outlook after Download:
*
Hi there, I'm a test message.
And again, a test message
=br />I'm a test message?
*
How can the problem be solved?
Kind Regards, Cicco
Attachments (2)
Change History (7)
Changed 10 months ago by Cicco0
Changed 10 months ago by Cicco0
comment:1 follow-up: ↓ 2 Changed 9 months ago by alec
- Resolution set to worksforme
- Status changed from new to closed
comment:2 in reply to: ↑ 1 Changed 9 months ago by drdol
- Resolution worksforme deleted
- Status changed from closed to reopened
Replying to alec:
The source code looks perfectly correct to me. It's encoded using quoted-printable. I opened the html.eml attachment in Thunderbird without issues.
The problem is, that the line ending is incorrect. According to the RFC 5322 (latest update of RFC 2822 (2001) and RFC 822 (1982)) the line ending should be CRLF.
Examples from the RFC
General
Messages are divided into lines of characters. A line is a series of characters that is delimited with the two characters carriage-return and line-feed; that is, the carriage return (CR) character (ASCII value 13) followed immediately by the line feed (LF) character (ASCII value 10). (The carriage return/line feed pair is usually written in this document as "CRLF".)
I guess Thunderbird and other email client are more indulge about the line endings.
comment:3 Changed 9 months ago by alec
Now I see it. It's rcube_imap_generic::handlePartBody() which rtrim()s the lines.
comment:4 Changed 9 months ago by alec
- Resolution set to fixed
- Status changed from reopened to closed
Fixed in fb2f825cd95677a2ede38e0a2ea99b6
comment:5 Changed 9 months ago by Cicco0
We thank you for the quick fix

The source code looks perfectly correct to me. It's encoded using quoted-printable. I opened the html.eml attachment in Thunderbird without issues.