Mails from outlook.com stripped of newlines

When sending a mail from outlook.com, newlines are stripped.

Related?
https://meta.discourse.org/t/newlines-stripped-in-html-email-replies-to-notifications/21062/7?u=sander78

Are you sure? Did you try with the same email? They both use the same code path.

I’ve noticed (and been wanting to report) that when I edit a mailed in post via the web interface, the newlines return. Maybe you’re facing this issue too?

Ok, need to rephrase: it happens for both group and category mail, and it happens when sent from outlook.com (the web client).

The issue is that some email providers add newlines every 80 characters or so. We added a fix to mitigate this issue but I don’t really like how it works. So I just removed it, let’s see if this is better

https://github.com/discourse/discourse/commit/c3a393a11fdf55739db22e5a97357dfbf45c8c44

4 Likes

There are still some lines removed I’m afraid.

This

Line 1

Line 2
Line 3

becomes

Line 1
Line 2Line 3

Can you send me the raw version of the email?