Skip to content

Instantly share code, notes, and snippets.

@monde
Created January 19, 2012 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monde/1638549 to your computer and use it in GitHub Desktop.
Save monde/1638549 to your computer and use it in GitHub Desktop.
$ ruby -rrubygems -Ilib -e "require 'mms2r'; require 'pp'; require 'logger'; mms = MMS2R::Media.new(Mail.read('yahoo_mail.txt'), :logger => Logger.new(STDOUT)); pp mms.media; pp mms.number; pp mms.carrier; pp mms.mail.parts.first.body"
I, [2012-01-18T23:13:22.361798 #16992] INFO -- : MMS2R::Media created
I, [2012-01-18T23:13:22.373058 #16992] INFO -- : MMS2R::Media processing
I, [2012-01-18T23:13:22.392366 #16992] INFO -- : MMS2R::Media writing file /tmp/mike/mms2r/132690569569845YahooMailNeoweb39301mailmudyahoocom_5b9274c1e5d6f0d2cc51cf13029e4cb350eb540b/1/1326957202.3911154.txt
I, [2012-01-18T23:13:22.395197 #16992] INFO -- : MMS2R::Media writing file /tmp/mike/mms2r/132690569569845YahooMailNeoweb39301mailmudyahoocom_5b9274c1e5d6f0d2cc51cf13029e4cb350eb540b/2/1326957202.3946183.html
{"text/plain"=>
["/tmp/mike/mms2r/132690569569845YahooMailNeoweb39301mailmudyahoocom_5b9274c1e5d6f0d2cc51cf13029e4cb350eb540b/1/1326957202.3911154.txt"],
"text/html"=>
["/tmp/mike/mms2r/132690569569845YahooMailNeoweb39301mailmudyahoocom_5b9274c1e5d6f0d2cc51cf13029e4cb350eb540b/2/1326957202.3946183.html"]}
"hermpaek"
"yahoo.com"
reply from yahoo web mail
________________________________
From: Respondbox <notifications@respondbox.com>
To: hermpaek@yahoo.com
Sent: Thursday, January 5, 2012 5:55 PM
Subject: Response from testBus
� Hi there,
testBus has sent you the following message:
� reply from business �
View conversation and respond on Respondbox.
Your original feedback was sent Thu, 05 Jan 2012 17:54 EST:
� test using yahoo mail � �
� Thanks,
The RespondBox Team
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment