Project

rfc2047

0.01
No commit activity in last 3 years
No release in over 3 years
Provides a method Rfc2047.decode that can decode individual headers encoded with this format.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

The rfc2047 ruby gem decodes email header fields that have been encoded according the rules layed forth by RFC 2047.

Rfc2047.decode("=?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?= =?ISO-8859-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?=")
# => "If you can read this yo u understand the example."

It is released under the same terms as Ruby itself.

It was originally written by Sam Roberts in 2003, and the current version was taken from the Joyent Connector, who cite the original mailing list post as the source. It was packaged as a gem in 2011, and now resides on Rubygems, with the source at GitHub.