aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/pop3_server.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-10 16:05:20 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-10 16:05:20 +0100
commita54a32084e9870af6f1ede97887c2332c21e812c (patch)
tree5ccc3afa55e3dc9a9cbb7dedefd0c2d19453ba5c /lib/mauve/pop3_server.rb
parent8621a1b4914f70975f83ad59d31da25d5c01aa1a (diff)
Added ability to tag multiple alerts with the same history item.
Diffstat (limited to 'lib/mauve/pop3_server.rb')
-rw-r--r--lib/mauve/pop3_server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/pop3_server.rb b/lib/mauve/pop3_server.rb
index e455591..ef307d5 100644
--- a/lib/mauve/pop3_server.rb
+++ b/lib/mauve/pop3_server.rb
@@ -258,7 +258,7 @@ module Mauve
send_data ["+OK #{msg.length} octets", msg, "."].join(CRLF)
note = "#{alert_changed.update_type.capitalize} notification downloaded via POP3 by #{@user}"
logger.info note+" about #{alert_changed}."
- h = History.new(:alert_id => alert_changed.alert_id, :type => "notification", :event => note)
+ h = History.new(:alerts => [alert_changed.alert_id], :type => "notification", :event => note)
logger.error "Unable to save history due to #{h.errors.inspect}" if !h.save
else
send_data "-ERR Message not found."