Skip to content

Commit

Permalink
Merge pull request mikel#357 from felixroeser/master
Browse files Browse the repository at this point in the history
Fixes mikel#349 an inverted condition on imap open read_only
  • Loading branch information
mikel committed Mar 15, 2012
2 parents 36b7fa2 + 219717c commit aba2ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mail/network/retriever_methods/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def find(options={}, &block)
options = validate_options(options)

start do |imap|
options[:read_only] ? imap.select(options[:mailbox]) : imap.examine(options[:mailbox])
options[:read_only] ? imap.examine(options[:mailbox]) : imap.select(options[:mailbox])

message_ids = imap.uid_search(options[:keys])
message_ids.reverse! if options[:what].to_sym == :last
Expand Down

0 comments on commit aba2ed7

Please sign in to comment.