mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 09:05:44 +08:00
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: 86819f08c3294313b9b414f3c38644e4a60284c8 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:
parent
4332f0dde1
commit
bcd4513963
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user