There was a few posts about this, so perhaps somebody will find it
useful.
RFC 2047 is the MIME standard that describes how to use non-ascii
character sets in internet mail. This library takes the approach that if
you give it a string that might have RFC 2047 encoded words in it, and
tell it what character set you’d like the string to be in, it will
convert it (using iconv).
Sam
p.s. Matt, I think this would be a useful addition to rmail, please
steal it! If you do, I’ll implement encoding.
rfc2047.rb (1.69 KB)
test.rb (2.71 KB)