What are the best packets to decode / encode MIME (base64) headers?

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

0


source to share


2 answers


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 .

+4


source


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.

0


source







All Articles