use a variable to set the header

This commit is contained in:
Jeff Atwood 2014-06-14 00:13:08 -07:00
parent a1482f24d9
commit 834b83aaea
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ module Email
@message.header['References'] = topic_identifier
# http://www.ietf.org/rfc/rfc2919.txt
@message.header['List-ID'] = "<topic.#{topic_id}.#{host}>"
list_id = "<topic.#{topic_id}.#{host}>"
@message.header['List-ID'] = list_id
# can't figure out how to get the current URL of the topic here
#@message.header['List-Archive'] =
end