end
def ssl?; @parsed_uri.scheme == 'imaps' end
+ def check
+ 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
+
## is this necessary? TODO: remove maybe
def == o; o.is_a?(IMAP) && o.uri == self.uri && o.username == self.username; end
end
raise
end
- rescue Net, SocketError, Net::IMAP::Error, SystemCallError => e
+ rescue SocketError, Net::IMAP::Error, SystemCallError, IOError => e
raise FatalSourceError, "While communicating with IMAP server: #{e.message}"
end
end