From c4d8d80b07727c3ec7d0f2135b871162de444f45 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Fri, 13 Jun 2014 15:49:11 -0700 Subject: [PATCH] only set List-Post if reply via email is on --- lib/email/sender.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/email/sender.rb b/lib/email/sender.rb index 2bfbae96717..1808387224e 100644 --- a/lib/email/sender.rb +++ b/lib/email/sender.rb @@ -73,6 +73,9 @@ module Email @message.header['List-ID'] = "" # can't figure out how to get the current URL of the topic here #@message.header['List-Archive'] = + end + + if reply_key.present? # in github notifications, these fields are identical @message.header['List-Post'] = @message.header['Reply-To'] end