nu7hatch / gmail

A Rubyesque interface to Gmail, with all the tools you'll need.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get Email Label

pixelmultiplo opened this issue · comments

Is it possible to get the labels associated with a Gmail::Message object?

I find a serious lack of documentation on how to handle single emails. Something like:

puts email.subject #prints the email subject

could be useful. I found out the most obvious by trial and error, some other by looking at the source, but this does not make easy to get started. Thanks for your work.

I suppose the right method is "labels" but i get:

uninitialized constant GmailImapExtensions::T_LPAR (NameError)

did a search but this solution (#78) is not clear to me, any help?

Solved, it was a dependecy problem.

This issue was moved to gmailgem/gmail#84