FIX: 'In-Reply-To' header should default to topic_message_id

This commit is contained in:
Régis Hanol
2016-11-28 14:18:02 +01:00
parent 6768c7fc0b
commit a03287f2ee
2 changed files with 71 additions and 3 deletions

View File

@ -100,8 +100,8 @@ module Email
@message.header['Message-ID'] = incoming_message_id || post_message_id
if post && post.post_number > 1
@message.header['In-Reply-To'] = referenced_post_message_ids.first
@message.header['References'] = [topic_message_id, referenced_post_message_ids].flatten
@message.header['In-Reply-To'] = referenced_post_message_ids.first || topic_message_id
@message.header['References'] = [topic_message_id, referenced_post_message_ids].flatten.compact.uniq
end
# http://www.ietf.org/rfc/rfc2919.txt