A small email parser in Ruby, completed for a 30 minute coding challenge.
To use, simply run:
ruby parser.rb filename flag
filename is just a file of raw email data
flag options are:
-t <- prints the recipient (to)
-f <- prints the sender (from)
-d <- prints the date (date)
-b <- prints the message body (body)
-s <- prints the message subject (subject)
-a <- prints everything (all)