end
def ssl?; @parsed_uri.scheme == 'imaps' end
+ def check; scan_mailbox; end
+
## is this necessary? TODO: remove maybe
def == o; o.is_a?(IMAP) && o.uri == self.uri && o.username == self.username; end
@mutex = Mutex.new
end
+ def check
+ scan_mailbox
+ start = @ids.index(cur_offset || start_offset) or raise OutOfSyncSourceError, "Unknown message id #{cur_offset || start_offset}." # couldn't find the most recent email
+ end
+
def load_header id
scan_mailbox
with_file_for(id) { |f| MBox::read_header f }