Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed Feb 1, 2012
2 parents 9654aa1 + eaec2c7 commit 612502a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/em-imap/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 612502a

Please sign in to comment.