From 1f2933ab23c6bb1acd21bce07b60d8f79c9eb999 Mon Sep 17 00:00:00 2001 From: Ben Walton Date: Tue, 3 Jun 2008 20:17:01 -0400 Subject: [PATCH] maildir cpu usage regression fix This small tweak resolves the cpu usage issue pointed out by Grant Hollingworth on sup-talk (http://rubyforge.org/pipermail/sup-talk/2008-May/001539.html). --- lib/sup/maildir.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb index 74a3e02..3d584f7 100644 --- a/lib/sup/maildir.rb +++ b/lib/sup/maildir.rb @@ -109,9 +109,6 @@ class Maildir < Source end end @ids = @dir_ids.values.flatten.uniq.sort! - #remove old id to fn mappings...hopefully this doesn't actually change - #anything...normally, we'll add to this list but never remove mail. - @ids_to_fns.delete_if { |k, v| !@ids.include?(k) } rescue SystemCallError, IOError => e raise FatalSourceError, "Problem scanning Maildir directories: #{e.message}." end -- 2.45.2