From b3a4345e1359f77011bd312b1afeed8eb2b97c91 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 4 Aug 2011 15:57:21 +0100 Subject: Fixed a couple of bugs in the packaging and the pop3 server --- lib/mauve/pop3_server.rb | 10 +++++++++- lib/mauve/version.rb | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/mauve') diff --git a/lib/mauve/pop3_server.rb b/lib/mauve/pop3_server.rb index b83e839..36a6cd2 100644 --- a/lib/mauve/pop3_server.rb +++ b/lib/mauve/pop3_server.rb @@ -276,12 +276,20 @@ module Mauve smtp = Mauve::Notifiers::Email::Default.new("TODO: why do I need to put this argument here?") alerts_seen = [] - AlertChanged.all(:person => self.user).each do |a| + # + # A maximum of the 100 most recent alerts. + # + AlertChanged.first(100, :person => self.user).each do |a| # # Not interested in alerts # next unless @level.nil? or a.level.to_s == @level + # + # Only interested in alerts + # + next unless a.alert.is_a?(Mauve::Alert) + # # Only one message per alert. # diff --git a/lib/mauve/version.rb b/lib/mauve/version.rb index 9967f49..4b6e941 100644 --- a/lib/mauve/version.rb +++ b/lib/mauve/version.rb @@ -1,5 +1,5 @@ module Mauve - VERSION="3.3.0" + VERSION="3.3.1" end -- cgit v1.2.1