Last active
December 13, 2015 23:38
Revisions
-
starrhorne revised this gist
Feb 20, 2013 . 1 changed file with 9 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ # First, you define an email receiver class class EmailReceiver < Incoming::Strategies::CloudMailin def receive(mail) puts %(Got message from #{mail.to.first} with subject "#{mail.subject}") end end # Then you feed it a Rack::Request object. And you're done. req = Rack::Request.new(env) result = EmailReceiver.receive(req) # => Got message from [email protected] with subject "hello world" -
starrhorne renamed this gist
Feb 20, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
starrhorne created this gist
Feb 20, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # First, you define an email receiver class class EmailReceiver < Incoming::Strategies::CloudMailin def receive(mail) puts %(Got message from #{mail.to.first} with subject "#{mail.subject}") end end # Then you feed it a Rack::Request object. And you're done. req = Rack::Request.new(env) result = EmailReceiver.receive(req) # => Got message from [email protected] with subject "hello world"