vmail 2.0.6 → 2.0.7
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 +3 -0
- data/lib/vmail/searching.rb +2 -1
- data/lib/vmail/version.rb +1 -1
- metadata +1 -1
data/lib/vmail/imap_client.rb
CHANGED
data/lib/vmail/searching.rb
CHANGED
@@ -32,7 +32,7 @@ module Vmail
|
|
32
32
|
log "- Query got #{@ids.size} results; max seqno: #{self.max_seqno}"
|
33
33
|
clear_cached_message
|
34
34
|
|
35
|
-
select_ids = search_query? ? @ids[-@limit
|
35
|
+
select_ids = (search_query? ? @ids[[-@limit, 0].max, @limit] : @ids)
|
36
36
|
|
37
37
|
if select_ids.size > @limit
|
38
38
|
raise "Too many messages to fetch headers for"
|
@@ -49,6 +49,7 @@ module Vmail
|
|
49
49
|
end
|
50
50
|
rescue
|
51
51
|
log "ERROR:\n#{$!.inspect}\n#{$!.backtrace.join("\n")}"
|
52
|
+
"Sorry there was an error. Please check vmail.log."
|
52
53
|
end
|
53
54
|
|
54
55
|
def search_query?
|
data/lib/vmail/version.rb
CHANGED