diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-31 14:41:46 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-31 14:41:46 +0100 |
commit | 47e71be469815a725d7e643dfcc95eb1a3012c89 (patch) | |
tree | c93bafb93210b3b7a285b1b1d9a912b66ad8d247 /lib/mauve/notifiers/email.rb | |
parent | 9f6f9008388f83c23a24ebafaab78f1697754b7c (diff) |
Changed email date back to the date the email was actually sent.
Diffstat (limited to 'lib/mauve/notifiers/email.rb')
-rw-r--r-- | lib/mauve/notifiers/email.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/mauve/notifiers/email.rb b/lib/mauve/notifiers/email.rb index 9d825b8..d450149 100644 --- a/lib/mauve/notifiers/email.rb +++ b/lib/mauve/notifiers/email.rb @@ -72,15 +72,7 @@ module Mauve m.header.to = destination m.header.from = @from - m.header.date = ( case alert.update_type - when "cleared" - alert.cleared_at - when "acknowledged" - alert.acknowledged_at - else - alert.raised_at - end ) - + m.header.date = Time.now m.header['Content-Type'] = "multipart/alternative" txt_template = File.join(File.dirname(__FILE__), "templates", "email.txt.erb") |