vmail 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmail/imap_client.rb +6 -4
- data/lib/vmail/searching.rb +1 -1
- data/lib/vmail/version.rb +1 -1
- metadata +1 -1
data/lib/vmail/imap_client.rb
CHANGED
@@ -230,10 +230,12 @@ module Vmail
|
|
230
230
|
# gets 100 messages prior to id
|
231
231
|
def more_messages
|
232
232
|
log "Getting more_messages"
|
233
|
-
|
234
|
-
|
235
|
-
@start_index =
|
236
|
-
|
233
|
+
log "old @start_index: #{@start_index}"
|
234
|
+
max = @start_index - 1
|
235
|
+
@start_index = [(max + 1 - @limit), 1].max
|
236
|
+
log "new @start_index: #{@start_index}"
|
237
|
+
fetch_ids = search_query? ? @ids[@start_index..max] : (@start_index..max).to_a
|
238
|
+
log fetch_ids.inspect
|
237
239
|
message_ids = fetch_and_cache_headers(fetch_ids)
|
238
240
|
res = get_message_headers message_ids
|
239
241
|
with_more_message_line(res)
|
data/lib/vmail/searching.rb
CHANGED
data/lib/vmail/version.rb
CHANGED