E-Mail Signature not correct stripped out

AI-generated summary

The discussion addresses a bug where Discourse incorrectly strips email signatures by requiring the delimiter to be only --, while RFC 3676 specifies -- (two dashes and a space) 1. Manfred_Bayer-Lemerz argues that without the space, legitimate text is mistakenly removed, and suggests adding a setting to support both formats if strict adherence is not feasible 7. codinghorror and mpalmer acknowledge the RFC requirement but note that the space should not prevent detection, with mpalmer humorously noting the current implementation is “more honoured in the breach” 5. codinghorror questions whether users understand this strict rule 8. Developer zogstrip requested specific examples of failures to investigate, which Manfred promised to send via email 10. This issue was previously discussed in a Meta topic regarding non-RFC compliant separators 4.

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.

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

2 Likes

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…

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

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

Original Meta Topic

4 Likes

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…

2 Likes

@zogstrip I believe both of the following cases should work

--<newline>
-- <newline>

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

1 Like

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

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!

1 Like