mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 13:41:03 +08:00
FEATURE: setting to only use the key when finding the related post of an email reply
this fixes email-in threading problems when using a SMTP server which modifies the message_id header, like Amazon SES
This commit is contained in:
parent
2bf2d506bf
commit
5e0efb3410
|
@ -1377,6 +1377,8 @@ en:
|
|||
email_prefix: "The [label] used in the subject of emails. It will default to 'title' if not set."
|
||||
email_site_title: "The title of the site used as the sender of emails from the site. Default to 'title' if not set. If your 'title' contains characters that are not allowed in email sender strings, use this setting."
|
||||
|
||||
find_related_post_with_key: "Only use the reply key to find the replied-to post. (Recommended if using Amazon SES)"
|
||||
|
||||
minimum_topics_similar: "How many topics need to exist before similar topics are presented when composing new topics."
|
||||
|
||||
relative_date_duration: "Number of days after posting where post dates will be shown as relative (7d) instead of absolute (20 Feb)."
|
||||
|
|
|
@ -629,6 +629,8 @@ email:
|
|||
alternative_reply_by_email_addresses:
|
||||
default: ''
|
||||
validator: "AlternativeReplyByEmailAddressesValidator"
|
||||
find_related_post_with_key:
|
||||
default: false
|
||||
manual_polling_enabled:
|
||||
default: false
|
||||
pop3_polling_enabled:
|
||||
|
|
|
@ -486,6 +486,8 @@ module Email
|
|||
end
|
||||
|
||||
def find_related_post
|
||||
return if SiteSetting.find_related_post_with_key
|
||||
|
||||
message_ids = [@mail.in_reply_to, Email::Receiver.extract_references(@mail.references)]
|
||||
message_ids.flatten!
|
||||
message_ids.select!(&:present?)
|
||||
|
|
Loading…
Reference in New Issue
Block a user