Permalink
Browse files

Merge pull request #357 from felixroeser/master

Fixes #349 an inverted condition on imap open read_only
  • Loading branch information...
2 parents 36b7fa2 + 219717c commit aba2ed7e22685a0409727dfd617eb21d17cbd96a @mikel mikel committed Mar 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mail/network/retriever_methods/imap.rb
@@ -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

0 comments on commit aba2ed7

Please sign in to comment.