From 47e71be469815a725d7e643dfcc95eb1a3012c89 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 31 Aug 2011 14:41:46 +0100 Subject: Changed email date back to the date the email was actually sent. --- lib/mauve/notifiers/email.rb | 10 +--------- 1 file changed, 1 insertion(+), 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") -- cgit v1.2.1