use RFC-complient signature separator dash-dash-space

currently, Discourse uses '---' in its notifications to
separate the signature with unsubscribe links etc. from
the body of the message.

The RFC standard defines '-- '.
https://www.ietf.org/rfc/rfc3676.txt (4.3)

The problem has been discussed in:

https://meta.discourse.org/t/previous-replies-separator-is-not-rfc-compliant/39410

And an incomplete fix has been added a year ago:
86819f08c3

The separator is important, because some mail clients strip off the
signature automatically in replies if the signature is recognised as such.
This commit is contained in:
Robert Riemann 2017-02-10 11:46:02 +01:00
parent 4332f0dde1
commit bcd4513963
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ module Email
string = allow_reply_by_email? ? "user_notifications.reply_by_email" : "user_notifications.visit_link_to_respond"
string << "_pm" if @opts[:private_reply]
end
@template_args[:respond_instructions] = "---\n" + I18n.t(string, @template_args)
@template_args[:respond_instructions] = "-- \n" + I18n.t(string, @template_args)
end
if @opts[:add_unsubscribe_link]