Last active
December 16, 2015 07:39
-
-
Save jpmckinney/5399865 to your computer and use it in GitHub Desktop.
params of a basic Rails app accepting a Mailgun POST https://github.com/opennorth/multi_mail-servers
This file contains 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 characters
{"recipient"=>"foo+bar@multimail.mailgun.org", | |
"sender"=>"james@opennorth.ca", | |
"subject"=>"Test", | |
"from"=>"James McKinney <james@opennorth.ca>", | |
"Received"=> | |
"from [192.168.0.110] ([69.165.215.199]) by mx.google.com with ESMTPS id ua6sm13398085igb.0.2013.04.15.17.20.12 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Apr 2013 17:20:13 -0700 (PDT)", | |
"X-Envelope-From"=>"<james@opennorth.ca>", | |
"X-Google-Dkim-Signature"=> | |
"v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:content-type:subject:date:message-id:to :mime-version:x-mailer:x-gm-message-state; bh=R7t3+HmbTXy88fTHZkghDYrCoX3JzLSvHw55rnronHk=; b=Haf2akufk9PFXcbkT2dZKh2r4OKiy3Oy398AEHubFlB/wHZm2oDjxqmQDSZZYzITTl 2HrC1rNA+LMXv8VRkh4ZaKBNQbi8hjulJXkD26r7PfmAqGnTY8JiKjOC4Q2TyJ5+N8m4 tAkLNRdy15aCO2WZtRI5uWL5WkgpRaabcgvONmd9XenKtyImAbS2RdDShAISVrcabivh ttzVqc12mELfVNiUCYFnyJDY0t7x0gxbbq7IRr3QqzXPihMDQtyNWKDNgy+5XopPxygV dES+wZHK9CeK0aivwpZl5Nz3wHuTWzU9ceoufLJFsL5AQGLCOAi2s5j7CnSilUjxN2sz /aoA==", | |
"X-Received"=> | |
"by 10.42.155.136 with SMTP id u8mr16615icw.26.1366071614191; Mon, 15 Apr 2013 17:20:14 -0700 (PDT)", | |
"Return-Path"=>"<james@opennorth.ca>", | |
"From"=>"James McKinney <james@opennorth.ca>", | |
"Content-Type"=> | |
"multipart/alternative; boundary=\"Apple-Mail=_D289CF3C-691D-4372-B921-FE97254B7A92\"", | |
"Subject"=>"Test", | |
"Date"=>"Mon, 15 Apr 2013 20:20:12 -0400", | |
"Message-Id"=>"<D6B0F2D4-0AB6-4BE1-8D40-75BFD0C26E64@opennorth.ca>", | |
"To"=>"foo+bar@multimail.mailgun.org", | |
"Mime-Version"=>"1.0 (Apple Message framework v1283)", | |
"X-Mailer"=>"Apple Mail (2.1283)", | |
"X-Gm-Message-State"=> | |
"ALoCoQm7HZ+xBsab1OTc5IP/6gSIc3SwGeh4lRf+obkhtV8tpZr9UlJRNMg8azp72ybxsGko66Jg", | |
"X-Mailgun-Sflag"=>"No", | |
"X-Mailgun-Sscore"=>"0.0", | |
"X-Mailgun-Spf"=>"Neutral", | |
"X-Mailgun-Incoming"=>"Yes", | |
"message-headers"=> | |
"[[\"Received\", \"by luna.mailgun.net with SMTP mgrt 8739881119761; Tue, 16 Apr 2013 00:20:15 +0000\"], [\"X-Envelope-From\", \"<james@opennorth.ca>\"], [\"Received\", \"from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172]) by mxa.mailgun.org with ESMTP id 516c993e.7feeac370970-in1; Tue, 16 Apr 2013 00:20:14 -0000 (UTC)\"], [\"Received\", \"by mail-ie0-f172.google.com with SMTP id c10so6519869ieb.17 for <foo+bar@multimail.mailgun.org>; Mon, 15 Apr 2013 17:20:14 -0700 (PDT)\"], [\"X-Google-Dkim-Signature\", \"v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:content-type:subject:date:message-id:to :mime-version:x-mailer:x-gm-message-state; bh=R7t3+HmbTXy88fTHZkghDYrCoX3JzLSvHw55rnronHk=; b=Haf2akufk9PFXcbkT2dZKh2r4OKiy3Oy398AEHubFlB/wHZm2oDjxqmQDSZZYzITTl 2HrC1rNA+LMXv8VRkh4ZaKBNQbi8hjulJXkD26r7PfmAqGnTY8JiKjOC4Q2TyJ5+N8m4 tAkLNRdy15aCO2WZtRI5uWL5WkgpRaabcgvONmd9XenKtyImAbS2RdDShAISVrcabivh ttzVqc12mELfVNiUCYFnyJDY0t7x0gxbbq7IRr3QqzXPihMDQtyNWKDNgy+5XopPxygV dES+wZHK9CeK0aivwpZl5Nz3wHuTWzU9ceoufLJFsL5AQGLCOAi2s5j7CnSilUjxN2sz /aoA==\"], [\"X-Received\", \"by 10.42.155.136 with SMTP id u8mr16615icw.26.1366071614191; Mon, 15 Apr 2013 17:20:14 -0700 (PDT)\"], [\"Return-Path\", \"<james@opennorth.ca>\"], [\"Received\", \"from [192.168.0.110] ([69.165.215.199]) by mx.google.com with ESMTPS id ua6sm13398085igb.0.2013.04.15.17.20.12 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Apr 2013 17:20:13 -0700 (PDT)\"], [\"From\", \"James McKinney <james@opennorth.ca>\"], [\"Content-Type\", \"multipart/alternative; boundary=\\\"Apple-Mail=_D289CF3C-691D-4372-B921-FE97254B7A92\\\"\"], [\"Subject\", \"Test\"], [\"Date\", \"Mon, 15 Apr 2013 20:20:12 -0400\"], [\"Message-Id\", \"<D6B0F2D4-0AB6-4BE1-8D40-75BFD0C26E64@opennorth.ca>\"], [\"To\", \"foo+bar@multimail.mailgun.org\"], [\"Mime-Version\", \"1.0 (Apple Message framework v1283)\"], [\"X-Mailer\", \"Apple Mail (2.1283)\"], [\"X-Gm-Message-State\", \"ALoCoQm7HZ+xBsab1OTc5IP/6gSIc3SwGeh4lRf+obkhtV8tpZr9UlJRNMg8azp72ybxsGko66Jg\"], [\"X-Mailgun-Sflag\", \"No\"], [\"X-Mailgun-Sscore\", \"0.0\"], [\"X-Mailgun-Spf\", \"Neutral\"], [\"X-Mailgun-Incoming\", \"Yes\"]]", | |
"timestamp"=>"1366071615", | |
"token"=>"5o56tmpwd3dnwthehwclemd-i-7u2gv9vb3u745ywj67d0mc87", | |
"signature"=> | |
"bc2ab6c1080d52f2a06928b93f21e86c2d28c548e2ef64354f8ba1a95bb53cd6", | |
"attachment-count"=>"2", | |
"body-plain"=> | |
"bold text\r\n\r\n\r\n\r\nsome more bold text\r\n\r\n\r\n\r\nsome italic text\r\n\r\n> multiline\r\n> quoted\r\n> text\r\n\r\n\r\n--\r\nSignature block", | |
"body-html"=> | |
"<html><head></head><body style=\"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; \"><b>bold text</b><div><br></div><div></div></body></html><html><body style=\"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; \"><head></head><br><div></div><div><br></div><div><b>some more bold text</b></div><div><b><br></b></div><div><b></b></div></body></html><html><head></head><body style=\"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; \"><br><div><b></b></div><div><b><span class=\"Apple-style-span\" style=\"font-weight: normal; \"><br></span></b></div><div><b><span class=\"Apple-style-span\" style=\"font-weight: normal; \"><i>some italic text</i></span></b></div><div><b><span class=\"Apple-style-span\" style=\"font-weight: normal; \"><br></span></b></div><div><blockquote type=\"cite\">multiline</blockquote><blockquote type=\"cite\">quoted</blockquote><blockquote type=\"cite\">text</blockquote></div><div><br></div><div>--</div><div>Signature block</div></body></html>", | |
"stripped-html"=> | |
"<html><head></head><body style=\"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; \"><b>bold text</b><div><br></div><div></div></body><html><body style=\"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; \"><br><div></div><div><br></div><div><b>some more bold text</b></div><div><b><br></b></div><div><b></b></div></body></html><html><head></head></html></html>", | |
"stripped-text"=> | |
"bold text\r\n\r\n\r\n\r\nsome more bold text\r\n\r\n\r\n\r\nsome italic text", | |
"stripped-signature"=>"--\r\nSignature block", | |
"attachment-1"=> | |
#<ActionDispatch::Http::UploadedFile:0x007fabbb292a48 | |
@content_type="text/plain", | |
@headers= | |
"Content-Disposition: form-data; name=\"attachment-1\"; filename=\"foo.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 58\r\n", | |
@original_filename="foo.txt", | |
@tempfile= | |
#<File:/var/folders/yn/4cwyp7v55w1c127fbn8sk8gm0000gn/T/RackMultipart20130416-80341-1il3cb7>>, | |
"attachment-2"=> | |
#<ActionDispatch::Http::UploadedFile:0x007fabbb292958 | |
@content_type="text/plain", | |
@headers= | |
"Content-Disposition: form-data; name=\"attachment-2\"; filename=\"bar.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 39\r\n", | |
@original_filename="bar.txt", | |
@tempfile= | |
#<File:/var/folders/yn/4cwyp7v55w1c127fbn8sk8gm0000gn/T/RackMultipart20130416-80341-dixq2>>, | |
"controller"=>"emails", | |
"action"=>"create"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment