vmail 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- x = [(@start_index - @limit), 0].max
234
- y = [@start_index - 1, 0].max
235
- @start_index = x
236
- fetch_ids = search_query? ? @ids[x..y] : (x..y).to_a
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)
@@ -53,7 +53,7 @@ module Vmail
53
53
 
54
54
  def search_query?
55
55
  x = @query[-1] != 'all'
56
- log "Search query? #{x} #{@query.inspect}"
56
+ #log "Search query? #{x}"
57
57
  x
58
58
  end
59
59
  end
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.0
5
+ version: 2.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Choi