Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't locate email using "subject" #66

Open
seaman1 opened this issue Jul 18, 2014 · 3 comments
Open

Can't locate email using "subject" #66

seaman1 opened this issue Jul 18, 2014 · 3 comments

Comments

@seaman1
Copy link

seaman1 commented Jul 18, 2014

gmail.inbox.emails(:subject => 'Email verification request')
returns all inbox emails
PS: not all of my inbox emails have subject 'Email verification request'.

@seaman1 seaman1 mentioned this issue Jul 18, 2014
@nritholtz
Copy link

+1

@nritholtz
Copy link

Actually for me, it was a silly mistake. I was using the latest gem '0.3.1', instead of master.

I fixed it by added gem 'ruby-gmail', git: '[email protected]:dcparker/ruby-gmail.git', :ref => 'f8c2651f19' to the Gemfile.

@seaman1 I wonder if you by chance made the same mistake.

@Viktova
Copy link

Viktova commented Dec 28, 2017

solved by setting a filter in gmail for specific subjects and move them into a new label (mailbox)
then set it as following:

gmail.mailbox('newlabelmailbox').emails(:unread)

this will return the mails that arent read and has a specific subject that we already filtered using gmail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants