From 757853bb96c2f75bcb28f16fcf80601abee48033 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 3 May 2012 18:43:24 +0100 Subject: Username is now recorded in the History wherever possible. --- lib/mauve/pop3_server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mauve/pop3_server.rb') diff --git a/lib/mauve/pop3_server.rb b/lib/mauve/pop3_server.rb index e7132f4..861b719 100644 --- a/lib/mauve/pop3_server.rb +++ b/lib/mauve/pop3_server.rb @@ -399,7 +399,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(:alerts => [alert_changed.alert_id], :type => "notification", :event => note) + h = History.new(:alerts => [alert_changed.alert_id], :type => "notification", :event => note, :user => @user) logger.error "Unable to save history due to #{h.errors.inspect}" if !h.save else send_data "-ERR Message not found." -- cgit v1.2.1