# E-Mail Signature not correct stripped out

**URL:** https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951
**Category:** Bug
**Created:** [25 februari 2017 om 17:48 UTC](https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951 "2017-02-25T17:48:27Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Manfred\_Bayer-Lemerz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manfred_bayer-lemerz/32/62721_2.png) [@Manfred\_Bayer-Lemerz](https://meta.discourse.org/u/Manfred_Bayer-Lemerz)
#### Post date: [25 februari 2017 om 17:48 UTC](https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951/1 "2017-02-25T17:48:27Z")

</div>

Hallo!

The official tag for the signature of an E-Mail ist "-- " so 2 dash and a blank . See also here: [RFC 3676 - The Text/Plain Format and DelSp Parameters](https://tools.ietf.org/html/rfc3676).

But discourse is only checking for “–” so only 2 dashes and this cut often also a text which is not part of the signature.

Can you Check?

thanks!

Manfred

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [26 februari 2017 om 02:18 UTC](https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951/2 "2017-02-26T02:18:27Z")

</div>

I know @zogstrip worked on this but the requiring of a space does not seem correct to me. Regardless, the presence of a space should not stop it from working…

---

<div class="post-metadata">

### Author: ![Manfred\_Bayer-Lemerz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manfred_bayer-lemerz/32/62721_2.png) [@Manfred\_Bayer-Lemerz](https://meta.discourse.org/u/Manfred_Bayer-Lemerz)
#### Post date: [26 februari 2017 om 07:25 UTC](https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951/3 "2017-02-26T07:25:11Z")

</div>

No it is the other way around, the space is needed to be the right tag for a begin of an signature!

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [26 februari 2017 om 13:57 UTC](https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951/4 "2017-02-26T13:57:00Z")

</div>

You may be interested in the discussion on the commit @zogstrip merged (and then reverted):  
[https://github.com/discourse/discourse/commit/d88562e72b963e998c7de2de6099e68ff972d941](https://github.com/discourse/discourse/commit/d88562e72b963e998c7de2de6099e68ff972d941)

[Original Meta Topic](https://meta.discourse.org/t/previous-replies-separator-is-not-rfc-compliant/39410)

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [26 februari 2017 om 22:18 UTC](https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951/5 "2017-02-26T22:18:28Z")

</div>

It’s definitely supposed to be _with_ the space to be a signature delimiter. However, William Shakespeare would be proud of the degree of “more honoured in the breach” on that one…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27 februari 2017 om 02:49 UTC](https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951/6 "2017-02-27T02:49:02Z")

</div>

@zogstrip I believe both of the following cases should work

```
--<newline>
-- <newline>

```

---

<div class="post-metadata">

### Author: ![Manfred\_Bayer-Lemerz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manfred_bayer-lemerz/32/62721_2.png) [@Manfred\_Bayer-Lemerz](https://meta.discourse.org/u/Manfred_Bayer-Lemerz)
#### Post date: [27 februari 2017 om 07:05 UTC](https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951/7 "2017-02-27T07:05:04Z")

</div>

> [@codinghorror](#):
>
> @zogstrip I believe both of the following cases should work

No Sorry this is not correct!

– IS not the tag for a signature, if you accept it as a tag it can happen that a text is stripped out which is not a signature!

But if you @codinghorror think both should work please make it with a parameter in the settings!

thanks

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27 februari 2017 om 08:13 UTC](https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951/8 "2017-02-27T08:13:13Z")

</div>

I seriously doubt users understand this rule you’re describing.

---

<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: [27 februari 2017 om 08:22 UTC](https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951/9 "2017-02-27T08:22:20Z")

</div>

Do you have examples that aren’t working so that I can check?

---

<div class="post-metadata">

### Author: ![Manfred\_Bayer-Lemerz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manfred_bayer-lemerz/32/62721_2.png) [@Manfred\_Bayer-Lemerz](https://meta.discourse.org/u/Manfred_Bayer-Lemerz)
#### Post date: [27 februari 2017 om 08:48 UTC](https://meta.discourse.org/t/e-mail-signature-not-correct-stripped-out/57951/10 "2017-02-27T08:48:04Z")

</div>

> [@zogstrip](#):
>
> Do you have examples that aren’t working so that I can check?

Sure I send you a e-mail with 2 attached mails. One where it is ok and one where it is wrong! Thanks for taking care!
