vmail 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/vmail/imap_client.rb +4 -0
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/lib/vmail/imap_client.rb
CHANGED
|
@@ -417,6 +417,10 @@ module Vmail
|
|
|
417
417
|
return @current_message
|
|
418
418
|
end
|
|
419
419
|
|
|
420
|
+
if index >= current_message_list_cache.size
|
|
421
|
+
index -= 1
|
|
422
|
+
log "index beyond bounds, setting index to #{index}"
|
|
423
|
+
end
|
|
420
424
|
prefetch_adjacent(index) # TODO mark these as unread
|
|
421
425
|
|
|
422
426
|
envelope_data = current_message_list_cache[index]
|
data/lib/vmail/version.rb
CHANGED