SMail is a very lightweight email library, based on Perl's Email::Simple.
It implements the minimal functions to enable the easy creation or parsing of an email message that conforms to RFC 2822.
It is intended to be the first of a family of SMail::* modules that will deal with many common email standards.
It is still a work in progress and the interface may change.
sudo gem install mwalker-smail--source http://gems.github.com
email = SMail.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!\nMatthew"
print email.to_s
SMail is maintained by Matthew Walker [email protected]
Contributors include:
Thanks to the Perl Email Project's Email::Simple