I am trying to encode / decode MIME headers in Ruby.
Ruby has basic Base64 methods, just
require "base64"
and use Base64.decode64 and Base64.encode64 . For quoted-printable, you can use the following code here .
Base64.decode64
Base64.encode64
If the mime content is related to emails, you can also check out TMAil ...
http://tmail.rubyforge.org/
It has a good approach to parsing email attachments and multipart messages and what not.