From: William Morgan Date: Wed, 2 Sep 2009 13:45:11 +0000 (-0400) Subject: Revert "Merge branch 'after-add-message-hook' into next" X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=344ae55b4fe626431d800230843bddf5a93eb429;hp=b98727cc2feb8175c6834e9b435796c333e96ee3;p=sup Revert "Merge branch 'after-add-message-hook' into next" This reverts commit 67214e30d648ac9351b9898f8e1587d065264787. This hook was causing sup-sync to fail on large mailboxes, because it was keeping every message around in memory. --- diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb index e8da557..46fe5c5 100644 --- a/lib/sup/poll.rb +++ b/lib/sup/poll.rb @@ -11,12 +11,6 @@ Variables: message: the new message EOS - HookManager.register "after-add-message", < m yield m end - HookManager.run "after-add-message", :messages => messages - rescue SourceError => e warn "problem getting messages from #{source}: #{e.message}" Redwood::report_broken_sources :force_to_top => true