mail

https://github.com/mikel/mail

Ruby

A Really Ruby Mail Library

Mail::AttachmentsList#guess_encoding

Uses the mime type to try and guess the encoding, if it is a binary type, or unknown, then we
set it to binary, otherwise as set to plain text

Source | Google | Stack overflow

Edit

git clone [email protected]:mikel/mail.git

cd mail

open lib/mail/attachments_list.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Mail--AttachmentsList-guess_encoding-for-pr


# Commit to git

git add lib/mail/attachments_list.rbgit commit -m "better docs for Mail::AttachmentsList#guess_encoding"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Mail--AttachmentsList-guess_encoding-for-pr

hub pull-request


# Celebrate!