mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 20:35:40 +08:00
FEATURE: add Message-ID header to emails
when topic present for email of course
This commit is contained in:
parent
4e735e8aab
commit
f918d3e89b
@ -67,6 +67,8 @@ module Email
|
|||||||
email_log.topic_id = topic_id
|
email_log.topic_id = topic_id
|
||||||
|
|
||||||
topic_identifier = "<topic/#{topic_id}@#{host}>"
|
topic_identifier = "<topic/#{topic_id}@#{host}>"
|
||||||
|
post_identifier = "<topic/#{topic_id}/#{post_id}@#{host}>"
|
||||||
|
@message.header['Message-ID'] = post_identifier
|
||||||
@message.header['In-Reply-To'] = topic_identifier
|
@message.header['In-Reply-To'] = topic_identifier
|
||||||
@message.header['References'] = topic_identifier
|
@message.header['References'] = topic_identifier
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user