commit 1f2933ab23c6bb1acd21bce07b60d8f79c9eb999
parent c1109326ae9116f0c814258b310333e13b2c3730
Author: Ben Walton <bwalton@artsci.utoronto.ca>
Date: Tue, 3 Jun 2008 20:17:01 -0400
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).
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git 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