wrap message IDs with <> in References header; #1227

This commit is contained in:
Peter Bhat Harkins 2023-12-04 09:26:36 -06:00
parent ff34ce9872
commit aa060669d5
1 changed files with 3 additions and 2 deletions

View File

@ -202,8 +202,9 @@ if __FILE__ == $PROGRAM_NAME
mail.puts "In-Reply-To: <#{c.story.mailing_list_message_id}>"
end
refs = ["<#{c.story.mailing_list_message_id}>"] +
c.parents.map(&:mailing_list_message_id)
refs = ([c.story.mailing_list_message_id] +
c.parents.map(&:mailing_list_message_id))
.map { |r| "<#{r}>" }
mail.puts "References: #{refs.join(" ")}"
mail.puts "Date: " << c.created_at.strftime("%a, %d %b %Y %H:%M:%S %z")