Skip to content

Instantly share code, notes, and snippets.

@cyx
Created September 19, 2012 20:51
Show Gist options
  • Save cyx/3752182 to your computer and use it in GitHub Desktop.
Save cyx/3752182 to your computer and use it in GitHub Desktop.
Example of Mandrill Mailbox Routes payload
[{"event"=>"inbound",
"ts"=>1348084981,
"msg"=>
{"raw_msg"=>
"Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50])\n\tby app02.transact (Postfix) with ESMTPS id 113FA160008E\n\tfor <[email protected]>; Wed, 19 Sep 2012 16:03:01 -0400 (EDT)\nReceived: by pbcmd12 with SMTP id md12so3511454pbc.37\n for <[email protected]>; Wed, 19 Sep 2012 13:03:00 -0700 (PDT)\nX-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=google.com; s=20120113;\n h=mime-version:from:date:message-id:subject:to:content-type\n :content-transfer-encoding:x-gm-message-state;\n bh=nj7aRozzB6DfuzLS5/RWru2ni7V73l9sEZWbQhPgc4Y=;\n b=TyTdKUhjpecuS7QeXUN8cP23fuG8nar8EdkyHuNqyDPBVm8n5R1bH+YLJEL2KhZ2kf\n EskBsvgjKW2qallcEcN+yoI6JR16g6mXzRTGXENMCJ2fI9sbTo1a3K3ZQ9AfFbjOTtDf\n F8L1PF8HpHtXRDAYsPRSlc6JCaAzWMfscE0l9g63DMx0jxC6hkpEGzNBlBUqK+hV7y6w\n FeJ6njxlS+1x2/UfjYj8Y9rKZNWCbElGnHOIvpDeq8AE/RXWXs06/G8ggSB8lr90MfCj\n uqEpnP3PTjPpBK4XADzYx1X6K7ZvIk9aoMclXbyEemTIphuDNPP1KLwW4S/1ff41POlV\n xy/g==\nReceived: by 10.68.226.132 with SMTP id rs4mr924761pbc.75.1348084980081; Wed,\n 19 Sep 2012 13:03:00 -0700 (PDT)\nMIME-Version: 1.0\nReceived: by 10.66.14.3 with HTTP; Wed, 19 Sep 2012 13:02:39 -0700 (PDT)\nFrom: =?ISO-8859-1?Q?Leandro_L=F3pez?= <[email protected]>\nDate: Wed, 19 Sep 2012 17:02:39 -0300\nMessage-ID: <CAHsHp6-au96uVdrSq5G3jwWZ24uKJH9QbERBtMA2Xv0ORfut=g@mail.gmail.com>\nSubject: Test\nTo: [email protected]\nContent-Type: text/plain; charset=ISO-8859-1\nContent-Transfer-Encoding: quoted-printable\nX-Gm-Message-State: ALoCoQmizugre5VxyHfiOnayDaxLOZrZ2M+1rcAqzMDkjaHtrV+cHFoG/80hR1cmV4eN7z+HEZCF\n\n--=20\nLeandro L=F3pez\nDeveloper\n\nCitrusbyte | Modern Web Development\nwww.citrusbyte.com\n",
"headers"=>
{"Received"=>
["from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by app02.transact (Postfix) with ESMTPS id 113FA160008E for <[email protected]>; Wed, 19 Sep 2012 16:03:01 -0400 (EDT)",
"by pbcmd12 with SMTP id md12so3511454pbc.37 for <[email protected]>; Wed, 19 Sep 2012 13:03:00 -0700 (PDT)",
"by 10.68.226.132 with SMTP id rs4mr924761pbc.75.1348084980081; Wed, 19 Sep 2012 13:03:00 -0700 (PDT)",
"by 10.66.14.3 with HTTP; Wed, 19 Sep 2012 13:02:39 -0700 (PDT)"],
"X-Google-Dkim-Signature"=>
"v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding:x-gm-message-state; bh=nj7aRozzB6DfuzLS5/RWru2ni7V73l9sEZWbQhPgc4Y=; b=TyTdKUhjpecuS7QeXUN8cP23fuG8nar8EdkyHuNqyDPBVm8n5R1bH+YLJEL2KhZ2kf EskBsvgjKW2qallcEcN+yoI6JR16g6mXzRTGXENMCJ2fI9sbTo1a3K3ZQ9AfFbjOTtDf F8L1PF8HpHtXRDAYsPRSlc6JCaAzWMfscE0l9g63DMx0jxC6hkpEGzNBlBUqK+hV7y6w FeJ6njxlS+1x2/UfjYj8Y9rKZNWCbElGnHOIvpDeq8AE/RXWXs06/G8ggSB8lr90MfCj uqEpnP3PTjPpBK4XADzYx1X6K7ZvIk9aoMclXbyEemTIphuDNPP1KLwW4S/1ff41POlV xy/g==",
"Mime-Version"=>"1.0",
"From"=>"Leandro López <[email protected]>",
"Date"=>"Wed, 19 Sep 2012 17:02:39 -0300",
"Message-Id"=>
"<CAHsHp6-au96uVdrSq5G3jwWZ24uKJH9QbERBtMA2Xv0ORfut=g@mail.gmail.com>",
"Subject"=>"Test",
"To"=>"[email protected]",
"Content-Type"=>"text/plain; charset=ISO-8859-1",
"Content-Transfer-Encoding"=>"quoted-printable",
"X-Gm-Message-State"=>
"ALoCoQmizugre5VxyHfiOnayDaxLOZrZ2M+1rcAqzMDkjaHtrV+cHFoG/80hR1cmV4eN7z+HEZCF"},
"text"=>
"-- \nLeandro López\nDeveloper\n\nCitrusbyte | Modern Web Development\nwww.citrusbyte.com\n",
"from_email"=>"[email protected]",
"from_name"=>"Leandro López ",
"to"=>[["[email protected]", nil]],
"email"=>"[email protected]",
"subject"=>"Test",
"tags"=>[],
"sender"=>nil}}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment