aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notifiers
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-04 17:18:53 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-04 17:18:53 +0100
commitd2ca9f1f93e86bbcc389604b4f85cc0ecf2ef906 (patch)
treec749de37eb1e6717554e8f6827722e996df48256 /lib/mauve/notifiers
parent6fbd9fcae218b675b298d7b4101e2f184e56818c (diff)
More pop3 tweaks
Diffstat (limited to 'lib/mauve/notifiers')
-rw-r--r--lib/mauve/notifiers/email.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mauve/notifiers/email.rb b/lib/mauve/notifiers/email.rb
index 8f2d32b..9676bf6 100644
--- a/lib/mauve/notifiers/email.rb
+++ b/lib/mauve/notifiers/email.rb
@@ -72,14 +72,14 @@ module Mauve
m.header.to = destination
m.header.from = @from
- m.header.date = case alert.update_type
+ m.header.date = ( case alert.update_type
when "cleared"
alert.cleared_at
when "acknowledged"
alert.acknowledged_at
else
alert.raised_at
- end
+ end ).to_time
m.header['Content-Type'] = "multipart/alternative"