gmail

https://github.com/gmailgem/gmail

Ruby

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

Gmail::Message#delete!

Deleting is done by adding the `\Trash` label. To undo this,
you just re-apply the `\Inbox` label (see `#undelete!`)

Source | Google | Stack overflow

Edit

git clone [email protected]:gmailgem/gmail.git

cd gmail

open lib/gmail/message.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Gmail--Message-delete--for-pr


# Commit to git

git add lib/gmail/message.rbgit commit -m "better docs for Gmail::Message#delete!"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Gmail--Message-delete--for-pr

hub pull-request


# Celebrate!