Home > smail-mime

smail-mime

Smail-mime is a project mainly written in Ruby, based on the MIT license.

A simple MIME email parser

README for smail-mime

SMail::MIME is an extention of the SMail gem to handle MIME encoded email. It is based on Perl's Email::MIME.

It implements the minimal functions to enable the easy creation or parsing of a MIME email message that conforms to the relevant RFCs.

It is still a work in progress and the interface may change.

Download & Install

sudo gem install mwalker-smail-mime --source http://gems.github.com

Synopsis

email = SMail::MIME.new(text)

from_header = email.header("From")
received = email.headers("Received")

email.header_set("From", "[email protected]")

old_body = email.body
email.body = "Hello World!
Matthew"

print email.to_s

Contributors

SMail::MIME is maintained by Matthew Walker [email protected]

Contributors include:

Pete Yandell

Thanks to the Perl Email Project's Email::MIME

Previous:serf