# Mails from outlook.com stripped of newlines

**URL:** https://meta.discourse.org/t/mails-from-outlook-com-stripped-of-newlines/40087
**Category:** Bug
**Created:** [24.Февраль.2016 12:59:31 UTC](https://meta.discourse.org/t/mails-from-outlook-com-stripped-of-newlines/40087 "2016-02-24T12:59:31Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Sander78](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sander78/32/296615_2.png) [@Sander78](https://meta.discourse.org/u/Sander78)
#### Post date: [24.Февраль.2016 12:59:32 UTC](https://meta.discourse.org/t/mails-from-outlook-com-stripped-of-newlines/40087/1 "2016-02-24T12:59:32Z")

</div>

When sending a mail from [outlook.com](http://outlook.com), newlines are stripped.

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

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [24.Февраль.2016 13:14:47 UTC](https://meta.discourse.org/t/mails-from-outlook-com-stripped-of-newlines/40087/2 "2016-02-24T13:14:47Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [24.Февраль.2016 13:21:46 UTC](https://meta.discourse.org/t/mails-from-outlook-com-stripped-of-newlines/40087/3 "2016-02-24T13:21:46Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Sander78](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sander78/32/296615_2.png) [@Sander78](https://meta.discourse.org/u/Sander78)
#### Post date: [24.Февраль.2016 13:27:43 UTC](https://meta.discourse.org/t/mails-from-outlook-com-stripped-of-newlines/40087/4 "2016-02-24T13:27:43Z")

</div>

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

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [24.Февраль.2016 14:18:36 UTC](https://meta.discourse.org/t/mails-from-outlook-com-stripped-of-newlines/40087/5 "2016-02-24T14:18:36Z")

</div>

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](https://github.com/discourse/discourse/commit/c3a393a11fdf55739db22e5a97357dfbf45c8c44)

---

<div class="post-metadata">

### Author: ![Sander78](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sander78/32/296615_2.png) [@Sander78](https://meta.discourse.org/u/Sander78)
#### Post date: [09.Март.2016 22:43:24 UTC](https://meta.discourse.org/t/mails-from-outlook-com-stripped-of-newlines/40087/6 "2016-03-09T22:43:24Z")

</div>

There are still some lines removed I’m afraid.

This

```plaintext
Line 1

Line 2
Line 3

```

becomes

```plaintext
Line 1
Line 2Line 3

```

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [15.Март.2016 10:47:15 UTC](https://meta.discourse.org/t/mails-from-outlook-com-stripped-of-newlines/40087/7 "2016-03-15T10:47:15Z")

</div>

Can you send me the raw version of the email?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [21.Июль.2022 06:52:29 UTC](https://meta.discourse.org/t/mails-from-outlook-com-stripped-of-newlines/40087/8 "2022-07-21T06:52:29Z")

</div>


