How do i search emails? - nu7hatch/gmail GitHub Wiki

For more detail see the actual code

To search:

gmail.inbox.emails(:body => "Ruby developers")

Options are:

:all, :after, :before, :on, :from, :to, :subject, :label, :attachment, :search, :body, :query

More on searching gmail