Messages or parts of multipart messages with
are displayed without line breaks (but spaces are kept).
I apologize to not include an example, but the mails in question contain information that I'd rather not have disclosed here.
I verified by base64-decoding the blocks in question, and the results show line breaks and thus appear as "well-formatted plain text".
Mails from the same source but with
are shown alright ,so it's likely due to base64 post-processing.
Encountered on Tumbleweed.
I tried reproducing with the following mbox file using git master:
Content-Type: text/plain; charset="utf-8"
According to "base64 -d" this should be shown as:
..which is exactly what KMail showed, including line breaks, i.e. I'm unable to reproduce. (Let me know in case I misunderstood the steps to reproduce.)
Please check whether the issue still happens with a recent version of KMail, and add a test case. You can use a text editor to redact the mail after saving as mbox, of course.
Dear Bug Submitter,
This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.
For more information about our bug triaging procedures please read the
wiki located here:
If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.
Thank you for helping us make KDE software even better for everyone!
Created attachment 128667 [details]
mbox where plain text has 0A (LF) line breaks
Created attachment 128668 [details]
mbox where plain text has 0D (CR) line breaks
Created attachment 128669 [details]
mbox where plain text has 0D0A (CRLF) line breaks
Thx for hinting mbox redaction.
While trying to come up with a disclosable example I found the cause is the line break character used in the base64-decoded plain text message: Apparently 0D (CR) characters are stripped from the resulting message.
Please find attached made-up mbox files with different line break encodings of the source plain text. You'll find that 0D.mbox doesn't break correctly while the other two do.
I created the files after the mail example where I first encountered the issue. To me it is not unlikely that the issue may be completely independent of Content-Type and Content-Transfer-Encoding. However I do not have the time now to do more thorough and complete testing. Feel free to create a more suitable bug ticket if sensible.
The issue continues to exist in KMail 5.14.0.
(In reply to kzi from comment #6)
> Apparently 0D (CR) characters are stripped from the resulting message.
...or just not rendered as line break.
Thanks, test cases are always helpful, as they often allow to better pinpoint the core issue. Glad you found the cause!
Can confirm that CR linebreaks in base64-encoded messages are not displayed using current git master.
In fact, this is not really specific to base64 encoding: Converting any mbox file (e.g. with "Content-Transfer-Encoding: 7Bit") with "unix2mac" to use CR linebreaks yields an empty message view already, and converting only the mail body shows the header at least, but misses linebreaks in the message text.
Note that only the message view is affected. When opening the "Message as Plain Text" window through "View Source", the linebreaks are displayed just fine.
indeed I confirm it.
But which mailer generates it ?
It seems that we can't load it from thunderbird.
> But which mailer generates it ?
While I think KMail should be capable do deal with any kind of line break, no matter the source, the answer (taken from the header) is:
esmtps (Exim 4.92.3)
I received the mail from the accounting of a web shop as an invoice carrier (hence the nondisclosure in the first place), so it's likely to originate from some kind of ERP system.
Git commit 65372b5304a504446259ec1504aa5e2856105e46 by Laurent Montel.
Committed on 25/05/2020 at 05:06.
Pushed by mlaurent into branch 'release/20.04'.
Add autotest for bug 392239
So we extract correctly \r Now we need to know why it doesn't display
A +19 -0 autotests/data/mails/bug392239.mbox
M +9 -0 autotests/messagetest.cpp
M +1 -0 autotests/messagetest.h