https://github.com/mikel/mail
Ruby
A Really Ruby Mail Library
Mail::Encodings.b_value_decode
Decodes a Base64 string from the "=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=" format
Example:
Encodings.b_value_decode("=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=")
#=> 'This is あ string'Edit
git clone [email protected]:mikel/mail.git
cd mail
open lib/mail/encodings.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Mail--Encodings-b_value_decode-for-pr
# Commit to gitgit add lib/mail/encodings.rbgit commit -m "better docs for Mail::Encodings.b_value_decode"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Mail--Encodings-b_value_decode-for-pr
hub pull-request
# Celebrate!