tags:

views:

115

answers:

2

I am trying to encode/decode MIME headers in Ruby.

+4  A: 

Ruby has Base64 methods in core, just do

require "base64"

and use Base64.decode64 and Base64.encode64. For quoted-printable, you could use the following code here.

Keltia
A: 

If the mime content is related to emails you might also want to check out TMAil...

http://tmail.rubyforge.org/

It has a nice approach to parsing out email attachments and multi-part messages and what not.

diclophis