From: Ben Walton Date: Wed, 4 Jun 2008 00:17:01 +0000 (-0400) Subject: maildir cpu usage regression fix X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=1f2933ab23c6bb1acd21bce07b60d8f79c9eb999;p=sup 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). --- 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