gmail
https://github.com/gmailgem/gmail
Ruby
A Rubyesque interface to Gmail, with all the tools you'll need.
Gmail::Message#move_to!
Move to given box and delete from others.
Apply a given label and optionally remove one.
TODO: We should probably deprecate this method. It doesn't really add a lot
of value, especially since the concept of "moving" a message from one
label to another doesn't totally make sense in the Gmail world.Edit
git clone [email protected]:gmailgem/gmail.git
cd gmail
open lib/gmail/message.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gmail--Message-move_to--for-pr
# Commit to gitgit add lib/gmail/message.rbgit commit -m "better docs for Gmail::Message#move_to!"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gmail--Message-move_to--for-pr
hub pull-request
# Celebrate!