Permalink
Browse files

Merge branch 'master' of https://github.com/lucasdicioccio/em-imap

  • Loading branch information...
2 parents 9654aa1 + eaec2c7 commit 612502a8bf99ce0a7dfd3415518217a5b90064eb @ConradIrwin committed Feb 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/em-imap/client.rb
View
@@ -516,7 +516,7 @@ def normalize_search_criteria(args)
when "*", -1, Range
Net::IMAP::MessageSet.new(arg)
when Array
- if Array.all?{ |item| item.is_a?(Number) || item.is_a?(Range) }
+ if arg.inject(true){|bool,item| bool and (item.is_a?(Integer) or item.is_a?(Range))}
Net::IMAP::MessageSet.new(arg)
else
normalize_search_criteria(arg)

0 comments on commit 612502a

Please sign in to comment.