From 42717933fecea2543cfdf395882a5ef8b47c1f80 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Fri, 23 Nov 2007 22:17:12 +0000 Subject: [PATCH] speed up imap load time git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@706 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/imap.rb | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/lib/sup/imap.rb b/lib/sup/imap.rb index 290ae2a..d648763 100644 --- a/lib/sup/imap.rb +++ b/lib/sup/imap.rb @@ -87,17 +87,8 @@ class IMAP < Source end def ssl?; @parsed_uri.scheme == 'imaps' end - def check - return unless start_offset - - ids = - @mutex.synchronize do - unsynchronized_scan_mailbox - @ids - end - - start = ids.index(cur_offset || start_offset) or raise OutOfSyncSourceError, "Unknown message id #{cur_offset || start_offset}." - end + def check; end # do nothing because anything we do will be too slow, + # and we'll catch the errors later. ## is this necessary? TODO: remove maybe def == o; o.is_a?(IMAP) && o.uri == self.uri && o.username == self.username; end @@ -253,8 +244,6 @@ private end end.join - - raise exception if exception end -- 2.45.2