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

email#message undefined method #2

Closed
jShaf opened this issue Oct 26, 2010 · 4 comments
Closed

email#message undefined method #2

jShaf opened this issue Oct 26, 2010 · 4 comments

Comments

@jShaf
Copy link

jShaf commented Oct 26, 2010

I could run this:

gmail.inbox.emails(:unread).each {|e| p e.subject}

but not this:

gmail.inbox.emails(:unread).each {|e| p e.message}
NoMethodError: undefined method `message' for #Mail::Message:0x00000102cdc578

Good work, btw!

@nu7hatch
Copy link
Owner

I understand that u want to read message body?
gmail.inbox.emails(:unread).each {|e| p e.body }

@jShaf
Copy link
Author

jShaf commented Oct 26, 2010

Ah, that works. So the message is based on mime/message?

@nu7hatch
Copy link
Owner

Exactly, Gmail::Message is extended version of it

@bootstraponline
Copy link
Contributor

This issue was moved to gmailgem/gmail#2

This issue was closed.
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