Mailspring icon indicating copy to clipboard operation
Mailspring copied to clipboard

Bug: New lines in text/plain email

Open Kladizkov opened this issue 6 years ago • 16 comments

Describe the bug After the Feb 25, 2020 update ( to version 1.7.4 ), I started to notice that the contents of some emails are appearing in a single line without the new line breaks. These were all text/plain emails.

To Reproduce Steps to reproduce the behavior: Send a text/plan email with multiple new lines to your address configured in mailspring. When the mail is received, open and view the email.

Expected behavior The line breaks in the original text/plain email should show as is in the mailspring email view.

Setup: (please complete the following information):

  • OS: Linux Mint
  • OS Version 19
  • Mailspring Version: 1.7.4

Kladizkov avatar Mar 11 '20 06:03 Kladizkov

I've noticed this as well! Ubuntu 18.04 Mailspring Version 1.7.4

sarajcev avatar Mar 12 '20 12:03 sarajcev

I can confirm as well that after the update to 1.7.4 new lines are not shown as expected.

rsalevsky avatar Mar 17 '20 13:03 rsalevsky

Also, when I try to compose a new email, sometimes it goes in plain text mode (which also removes the signature), even when the configuration is set to rich text.

Only closing and reopening Mailspring solve this.

paulocoghi avatar Mar 18 '20 14:03 paulocoghi

Present on Windows 10, 1.7.4.

When an email arrives that contains ONLY a plaintext MIME part, Mailspring now displays it in the app in plain text with display:pre formatting so newlines are preserved. I think this will make the mailing list reading experience much better.

Noticed this in the comment announcing plaintext support. Is there a chance that this is responsible/a way to temporarily disable this feature?

chipbuster avatar Mar 22 '20 21:03 chipbuster

I have the same problem on Windows 10, ver. 1.7.4

ondrej-petr avatar Apr 15 '20 06:04 ondrej-petr

Also, when I try to compose a new email, sometimes it goes in plain text mode (which also removes the signature), even when the configuration is set to rich text.

Only closing and reopening Mailspring solve this.

This particular issue was solved on 1.7.5! :tada: :tada: :tada: :tada: :tada:

paulocoghi avatar Apr 16 '20 20:04 paulocoghi

Hey folks! Thanks for reporting this, we fixed a bug in 1.7.5 that caused the app to author all new drafts in plaintext mode (ironically it got confused and thought you were holding the Alt key indefinitely...) This sounds like it may be a bit different though—let me take a look today and I'll keep you posted.

bengotow avatar Apr 17 '20 14:04 bengotow

I upgraded to 1.7.5, but I still have the new line issues. My problem is not during the composing stage. It is the mails that I receive that doesn't have new lines appearing in it. It all comes in one single line.

Kladizkov avatar Apr 18 '20 06:04 Kladizkov

The fixes brought in version 1.7.5 addressed other issues (like the one I reported in my first message) and were excellent.

@bengotow is working on this one now, and I confirm that the problem of new lines in text/plain received emails still remains.

paulocoghi avatar Apr 18 '20 21:04 paulocoghi

Hey! I believe the problem with new lines should be fixed in the next release. I hadn't realized that you were referring (I think) to the whitespace in the reply text? I was able to reproduce a problem where this text outlined in red below would all be on one line if you were replying in rich text and the incoming email was in plain text.

Will ship this fix in the next release!

image

bengotow avatar Apr 26 '20 06:04 bengotow

Hi Ben, i beleive that the bug was refering to entire incoming message (at least in my case).

Regards Ondřej On dub 26 2020, at 8:51 am, Ben Gotow [email protected] wrote:

Hey! I believe the problem with new lines should be fixed in the next release. I hadn't realized that you were referring (I think) to the whitespace in the reply text? I was able to reproduce a problem where this text outlined in red below would all be on one line if you were replying in rich text and the incoming email was in plain text. Will ship this fix in the next release!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub (https://github.com/Foundry376/Mailspring/issues/1853#issuecomment-619495583), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ACL4BEAREW2IQQNNML3I2KDROPKW7ANCNFSM4LFOSJTQ).

ondrej-petr avatar Apr 26 '20 07:04 ondrej-petr

Hi Ben, here is an example of an single line incoming message:

singleline

rsalevsky avatar Apr 27 '20 12:04 rsalevsky

I think this is something about the content-type. When the Content-Type is "multipart/mixed" it appears in one line, but when it is "multipart/alternative" ( or something else ) it works. I'm not an expert in email headers. But maybe that helps you find the bug easily.

Try sending an email with this email headers.

From: [email protected]
Subject: MyEmail
To: [email protected]
Date: Tue, 28 Apr 2020 10:14:29 +0530 (IST)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="bound1588023280"

This is a multi-part message in MIME format.

--bound1588023280
Content-type: text/plain

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,


Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,

--bound1588023280--

It will appear like this

Screenshot from 2020-04-28 11-04-05

Kladizkov avatar Apr 28 '20 05:04 Kladizkov

After upgrading to 1.7.8, I see this issue fixed.

Kladizkov avatar May 29 '20 05:05 Kladizkov

I also confirm this issue is solved on 1.7.8

paulocoghi avatar May 30 '20 02:05 paulocoghi

It appears that this issue has been resolved, so we are closing it. If the problem occurs again, please create a new thread in the appropriate category on our Discourse.

We are in the process of migrating issues to Discourse, which can better facilitate discussion and discovery, and so GitHub Issues can focus on issues that are confirmed and slated for resolution in the near term. Learn more about the changes here.

We hope to see you there soon!

-The Mailspring Team

CodeMouse92 avatar Feb 09 '21 21:02 CodeMouse92