mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FEATURE: secure_email site setting to prevent data going out in email
This commit is contained in:
parent
b76674f640
commit
bf9c4a7828
17 changed files with 281 additions and 89 deletions
|
@ -130,7 +130,14 @@ module Email
|
|||
# https://www.ietf.org/rfc/rfc3834.txt
|
||||
@message.header['Precedence'] = 'list'
|
||||
@message.header['List-ID'] = list_id
|
||||
@message.header['List-Archive'] = topic.url if topic
|
||||
|
||||
if topic
|
||||
if SiteSetting.private_email?
|
||||
@message.header['List-Archive'] = "#{Discourse.base_url}#{topic.slugless_url}"
|
||||
else
|
||||
@message.header['List-Archive'] = topic.url
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if reply_key.present? && @message.header['Reply-To'] =~ /\<([^\>]+)\>/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue