From: wmorgan Date: Fri, 23 Nov 2007 22:17:12 +0000 (+0000) Subject: speed up imap load time X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=42717933fecea2543cfdf395882a5ef8b47c1f80;p=sup speed up imap load time git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@706 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- 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