dcparker / ruby-gmail

A Rubyesque interface to Gmail. Connect to Gmail via IMAP and manipulate emails and labels. Send email with your Gmail account via SMTP. Includes full support for parsing and generating MIME messages.
http://dcparker.github.com/ruby-gmail
792 stars 123 forks source link

Searching under a label does not appear to work #62

Open kdivvela opened 10 years ago

kdivvela commented 10 years ago

I'm using the 0.3.1 version of this gem and noticed that searching email under a label no longer works. For example:

after = Date.today - 15 count = gmail.mailbox('Label').count(:after => after, :subject => "Subject X")

This yields the count of ALL emails under the label instead of the number of emails with the search criteria.