dcparker / ruby-gmail

A Rubyesque interface to Gmail. Connect to Gmail via IMAP and manipulate emails and labels. Send email with your Gmail account via SMTP. Includes full support for parsing and generating MIME messages.
http://dcparker.github.com/ruby-gmail
790 stars 123 forks source link

Add a way to list all gmail labels, and rename labels. #4

Closed dcparker closed 10 years ago

justinperkins commented 14 years ago

I was looking into this too. A typical use-case would be to check if a message has a label, and create/apply it to the message if not. The Net::IMAP#list method gets all the labels, but still unsure how to reconcile which messages have a given label.

jasonwbarnett commented 10 years ago

I added a way to rename and destroy labels in my fork just in case you want it... https://github.com/jasonwbarnett/ruby-gmail

I added these specifically in https://github.com/jasonwbarnett/ruby-gmail/commit/a3bb025b5e7d68e61a384a76a8441b30ba7447ab

myobie commented 10 years ago

I merge a PR in that should add this. I'll cut a gem version tonight.