commit 42717933fecea2543cfdf395882a5ef8b47c1f80
parent 3bb1f58e048d9d0be4ddeb1f84876456441bc2ff
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Fri, 23 Nov 2007 22:17:12 +0000
speed up imap load time
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@706 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git 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