# Disable stripping emails

**URL:** https://meta.discourse.org/t/disable-stripping-emails/42878
**Category:** Support
**Created:** [April 20, 2016, 1:45pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878 "2016-04-20T13:45:26Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Jared\_Needell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jared_needell/32/116554_2.png) [@Jared\_Needell](https://meta.discourse.org/u/Jared_Needell)
#### Post date: [April 20, 2016, 1:45pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/1 "2016-04-20T13:45:26Z")

</div>

I have an automated report that gets sent to a discourse category but I noticed discourse is stripping half of it either maybe because it’s HTML or thinking it’s a signature.

I don’t see any option to disable striping signature/text out of incoming emails.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [April 20, 2016, 1:55pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/2 "2016-04-20T13:55:24Z")

</div>

To identify which, can you take the source of the email and paste it into a Discourse Topic manually on your installation?

That will tell you if it is HTML being stripped out or if it is something to do with signature detection (specific to email).

_at least I think this will work as a valid test_

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [April 20, 2016, 2:16pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/3 "2016-04-20T14:16:16Z")

</div>

Hmm…

“We don’t strip out user signatures since there’s no standard.” - @zogstrip

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [April 20, 2016, 2:17pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/4 "2016-04-20T14:17:26Z")

</div>

Oh yeah, so that probably means it is the HTML then.

---

<div class="post-metadata">

### Author: ![Jared\_Needell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jared_needell/32/116554_2.png) [@Jared\_Needell](https://meta.discourse.org/u/Jared_Needell)
#### Post date: [April 20, 2016, 2:23pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/5 "2016-04-20T14:23:13Z")

</div>

when I paste the email into a new topic, nothing is getting stripped out.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [April 20, 2016, 2:35pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/6 "2016-04-20T14:35:15Z")

</div>

And you are pasting the HTML and text right, you aren’t just copying the text from your email client and pasting it? As that would be entirely different.

---

<div class="post-metadata">

### Author: ![Jared\_Needell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jared_needell/32/116554_2.png) [@Jared\_Needell](https://meta.discourse.org/u/Jared_Needell)
#### Post date: [April 20, 2016, 3:00pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/7 "2016-04-20T15:00:29Z")

</div>

I’m opening the raw email and copying the entire body content which includes HTML

---

<div class="post-metadata">

### Author: ![Jared\_Needell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jared_needell/32/116554_2.png) [@Jared\_Needell](https://meta.discourse.org/u/Jared_Needell)
#### Post date: [April 21, 2016, 3:43pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/8 "2016-04-21T15:43:57Z")

</div>

Anyone able to help with this?

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [April 21, 2016, 3:50pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/9 "2016-04-21T15:50:57Z")

</div>

Without specifics of the content in question, it will be hard to diagnose.

---

<div class="post-metadata">

### Author: ![Jared\_Needell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jared_needell/32/116554_2.png) [@Jared\_Needell](https://meta.discourse.org/u/Jared_Needell)
#### Post date: [April 21, 2016, 5:55pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/10 "2016-04-21T17:55:36Z")

</div>

Ok,

So I did a little more digging, the email reports are emails from our [CruiseControl.NET](http://CruiseControl.NET) application which return a report of a “build” failure or success after a new build was created.

I noticed a couple things with the email,

- The html body has a 2nd snippet that Discourse appears to stop reading the email after this point
- The email uses URL encoding for line feed and new lines ([HTML URL Encoding Reference](http://www.w3schools.com/tags/ref_urlencode.asp))  
“=0D” and “=0A”.

If I manually remove the 2nd and get rid of the encoding. The output is pretty close to what the email actually looks like.

---

<div class="post-metadata">

### Author: ![Jared\_Needell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jared_needell/32/116554_2.png) [@Jared\_Needell](https://meta.discourse.org/u/Jared_Needell)
#### Post date: [April 22, 2016, 12:30am UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/11 "2016-04-22T00:30:49Z")

</div>

Any way to bypass those quirks and Discourse creates the message?

---

<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: [April 22, 2016, 2:01am UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/12 "2016-04-22T02:01:35Z")

</div>

For starters, can you PM @zogstrip the full source of the problem email.

---

<div class="post-metadata">

### Author: ![frictionel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frictionel/32/299701_2.png) [@frictionel](https://meta.discourse.org/u/frictionel)
#### Post date: [September 6, 2016, 8:45pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/13 "2016-09-06T20:45:50Z")

</div>

> [@downey](#):
>
> “We don’t strip out user signatures since there’s no standard.” - @zogstrip

…but actually there is. Kind of: [RFC 3676 - The Text/Plain Format and DelSp Parameters](https://tools.ietf.org/html/rfc3676#section-4.3)

I use "-- " since like forever. Had set up incoming email in Discourse, just did a test and was now wondering why my signature is not stripped. The above quote seems to explain why this quasi standard is ignored. (sorry, I didn’t find the source of the quote)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 3, 2019, 2:54pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/14 "2019-03-03T14:54:02Z")

</div>



---

<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: [March 3, 2019, 9:57pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/15 "2019-03-03T21:57:57Z")

</div>

@Jared_Needell curious, what ended up happening here?

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 2, 2019, 9:57pm UTC](https://meta.discourse.org/t/disable-stripping-emails/42878/16 "2019-04-02T21:57:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
