gmailgem / gmail

A Rubyesque interface to Gmail, with all the tools you'll need.
Other
397 stars 119 forks source link

Get Email Label #84

Closed bootstraponline closed 9 years ago

bootstraponline commented 9 years ago

From @marekmaurizio on February 12, 2013 15:22

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.

Copied from original issue: nu7hatch/gmail#84

bootstraponline commented 9 years ago

From @marekmaurizio on February 12, 2013 15:48

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

uninitialized constant GmailImapExtensions::T_LPAR (NameError)

did a search but this solution (https://github.com/nu7hatch/gmail/issues/78) is not clear to me, any help?

bootstraponline commented 9 years ago

From @marekmaurizio on February 14, 2013 11:29

Solved, it was a dependecy problem.