multi_mail 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +57 -34
  3. data/bin/multi_mail_post +71 -0
  4. data/lib/mail_ext/message.rb +11 -0
  5. data/lib/multi_mail.rb +25 -8
  6. data/lib/multi_mail/cloudmailin/receiver.rb +24 -3
  7. data/lib/multi_mail/mailgun/message.rb +6 -1
  8. data/lib/multi_mail/mailgun/sender.rb +4 -4
  9. data/lib/multi_mail/mandrill/message.rb +4 -3
  10. data/lib/multi_mail/mandrill/sender.rb +9 -2
  11. data/lib/multi_mail/message/base.rb +14 -0
  12. data/lib/multi_mail/postmark/message.rb +74 -0
  13. data/lib/multi_mail/postmark/receiver.rb +2 -1
  14. data/lib/multi_mail/postmark/sender.rb +54 -24
  15. data/lib/multi_mail/sendgrid/message.rb +4 -4
  16. data/lib/multi_mail/sendgrid/sender.rb +2 -2
  17. data/lib/multi_mail/simple/receiver.rb +31 -1
  18. data/lib/multi_mail/version.rb +1 -1
  19. data/multi_mail.gemspec +2 -1
  20. data/spec/cloudmailin/receiver_spec.rb +89 -84
  21. data/spec/fixtures/cloudmailin/json/attachment_store.txt +65 -0
  22. data/spec/fixtures/cloudmailin/multipart/attachment_store.txt +174 -0
  23. data/spec/fixtures/cloudmailin/raw/attachment_store.txt +162 -0
  24. data/spec/fixtures/mailgun/parsed/valid.txt +107 -101
  25. data/spec/fixtures/simple/invalid.txt +4 -0
  26. data/spec/fixtures/simple/missing.txt +4 -0
  27. data/spec/fixtures/simple/valid.txt +1 -1
  28. data/spec/mail_ext/message_spec.rb +45 -0
  29. data/spec/mailgun/message_spec.rb +38 -8
  30. data/spec/mailgun/receiver_spec.rb +104 -110
  31. data/spec/mailgun/sender_spec.rb +13 -7
  32. data/spec/mandrill/message_spec.rb +25 -1
  33. data/spec/mandrill/receiver_spec.rb +81 -83
  34. data/spec/mandrill/sender_spec.rb +13 -6
  35. data/spec/message/base_spec.rb +33 -1
  36. data/spec/postmark/message_spec.rb +292 -0
  37. data/spec/postmark/receiver_spec.rb +46 -48
  38. data/spec/postmark/sender_spec.rb +10 -10
  39. data/spec/sendgrid/message_spec.rb +6 -1
  40. data/spec/sendgrid/receiver_spec.rb +56 -58
  41. data/spec/sendgrid/sender_spec.rb +9 -7
  42. data/spec/service_spec.rb +1 -1
  43. data/spec/simple/receiver_spec.rb +38 -25
  44. data/spec/spec_helper.rb +6 -8
  45. metadata +185 -203
@@ -0,0 +1,65 @@
1
+ HTTP/1.1 200 OK
2
+ Content-Length: 3798
3
+ Content-Type: application/json
4
+ X-Request-Start: 1378523197697
5
+ X-Forwarded-Proto: http
6
+ X-Forwarded-Port: 80
7
+ X-Forwarded-For: 174.129.35.193
8
+ User-Agent: CloudMailin Server
9
+ Host: rackbin.herokuapp.com
10
+ Connection: close
11
+ Version: HTTP/1.1
12
+
13
+ {
14
+ "headers": {
15
+ "Return-Path": "james@opennorth.ca",
16
+ "Received": [
17
+ "by mail-qc0-f177.google.com with SMTP id x12so1548824qcv.36 for <5dae6f85cd65d30d384a@cloudmailin.net>; Fri, 06 Sep 2013 20:06:37 -0700",
18
+ "from [192.168.2.20] ([70.49.74.123]) by mx.google.com with ESMTPSA id fy7sm2646347qeb.1.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 06 Sep 2013 20:06:36 -0700"
19
+ ],
20
+ "Date": "Mon, 15 Apr 2013 20:20:12 -0400",
21
+ "From": "James McKinney <james@opennorth.ca>",
22
+ "To": "5dae6f85cd65d30d384a@cloudmailin.net",
23
+ "Message-ID": "<D3F16515-ED8C-4DEC-80EA-553B7266FD4C@opennorth.ca>",
24
+ "Subject": "Test",
25
+ "Mime-Version": "1.0",
26
+ "Content-Type": "multipart/alternative; boundary=\"Apple-Mail=_58AF8BB6-04D5-4B22-95D5-BFFB183CB821\"; charset=UTF-8",
27
+ "Content-Transfer-Encoding": "7bit",
28
+ "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:subject:date:message-id:to :mime-version; bh=XFFIu2nTnDfhViW8rylqgBXliiVE9n99uIZDjHX7vN8=; b=BtYVZz6pmZ6P7A4lqf64efvrOa4WSGa5UHybTnd7IG3dwneGEnz4QaH/nCdzBrzdKT 8ukGjPp+b3mx3S8TrXrX98/9c6Q1mVgFMBwYtL7NNnfoLmAEvgB9tgitPHgb6/q/N2bm oJNV7XQ9P07Snfq1NJcNNOk8FiJVYdYerUceMN6A8nIXnyhfWGOse+TGLQVMpxJ4yT74 gOadKvaQpumsjZmPpyTViv7rTGXSkTsmxleb0gAJxabFrUFDcp0kptY8pHEwek7Qi+/j 1h3HmTh3F9WmC0/EJbKyEXQTbujtDzsAzWBmov4uwh2885bgWwUzXDJc+JrsI0qX0TQw IrNQ==",
29
+ "X-Gm-Message-State": "ALoCoQkL/+YuGYWfMRnoFzhV8wFry1fgjjK7/X7lmXUXSXYJcQL91b9WlM0+gLt+zU2m2yKg/Io2",
30
+ "X-Received": "by 10.224.172.131 with SMTP id l3mr7166098qaz.35.1378523197028; Fri, 06 Sep 2013 20:06:37 -0700 (PDT)",
31
+ "X-Mailer": "Apple Mail (2.1283)"
32
+ },
33
+ "envelope": {
34
+ "to": "5dae6f85cd65d30d384a@cloudmailin.net",
35
+ "recipients": [
36
+ "5dae6f85cd65d30d384a@cloudmailin.net"
37
+ ],
38
+ "from": "james@opennorth.ca",
39
+ "helo_domain": "mail-qc0-f177.google.com",
40
+ "remote_ip": "209.85.216.177",
41
+ "spf": {
42
+ "result": "pass",
43
+ "domain": "opennorth.ca"
44
+ }
45
+ },
46
+ "plain": "bold text\n\n\n\nsome more bold text\n\n\n\nsome italic text\n\n> multiline\n> quoted\n> text\n\n\n--\nSignature block",
47
+ "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>",
48
+ "reply_plain": "bold text\n\n\n\nsome more bold text\n\n\n\nsome italic text\n",
49
+ "attachments": [
50
+ {
51
+ "file_name": "foo.txt",
52
+ "content_type": "text/plain",
53
+ "size": "57",
54
+ "disposition": "attachment",
55
+ "url": "http://multi-mail.s3.amazonaws.com/5e2dd992326d08ac5c72.txt"
56
+ },
57
+ {
58
+ "file_name": "bar.txt",
59
+ "content_type": "text/plain",
60
+ "size": "38",
61
+ "disposition": "attachment",
62
+ "url": "http://multi-mail.s3.amazonaws.com/b296959bbe7889c172c8.txt"
63
+ }
64
+ ]
65
+ }
@@ -0,0 +1,174 @@
1
+ HTTP/1.1 200 OK
2
+ Content-Length: 5886
3
+ Content-Type: multipart/form-data; boundary=----cloudmailinboundry
4
+ X-Request-Start: 1378525227186
5
+ X-Forwarded-Proto: http
6
+ X-Forwarded-Port: 80
7
+ X-Forwarded-For: 109.107.35.53
8
+ User-Agent: CloudMailin Server
9
+ Host: rackbin.herokuapp.com
10
+ Connection: close
11
+ Version: HTTP/1.1
12
+
13
+ ------cloudmailinboundry
14
+ Content-Disposition: form-data; name="plain"
15
+
16
+ bold text
17
+
18
+
19
+
20
+ some more bold text
21
+
22
+
23
+
24
+ some italic text
25
+
26
+ > multiline
27
+ > quoted
28
+ > text
29
+
30
+
31
+ --
32
+ Signature block
33
+ ------cloudmailinboundry
34
+ Content-Disposition: form-data; name="html"
35
+
36
+ <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>
37
+ ------cloudmailinboundry
38
+ Content-Disposition: form-data; name="reply_plain"
39
+
40
+ bold text
41
+
42
+
43
+
44
+ some more bold text
45
+
46
+
47
+
48
+ some italic text
49
+
50
+ ------cloudmailinboundry
51
+ Content-Disposition: form-data; name="headers[Return-Path]"
52
+
53
+ james@opennorth.ca
54
+ ------cloudmailinboundry
55
+ Content-Disposition: form-data; name="headers[Received][0]"
56
+
57
+ by mail-qc0-f175.google.com with SMTP id v2so2167362qcr.34 for <5dae6f85cd65d30d384a@cloudmailin.net>; Fri, 06 Sep 2013 20:40:24 -0700
58
+ ------cloudmailinboundry
59
+ Content-Disposition: form-data; name="headers[Received][1]"
60
+
61
+ from [192.168.2.20] ([70.49.74.123]) by mx.google.com with ESMTPSA id u9sm2845233qar.4.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 06 Sep 2013 20:40:23 -0700
62
+ ------cloudmailinboundry
63
+ Content-Disposition: form-data; name="headers[Date]"
64
+
65
+ Mon, 15 Apr 2013 20:20:12 -0400
66
+ ------cloudmailinboundry
67
+ Content-Disposition: form-data; name="headers[From]"
68
+
69
+ James McKinney <james@opennorth.ca>
70
+ ------cloudmailinboundry
71
+ Content-Disposition: form-data; name="headers[To]"
72
+
73
+ 5dae6f85cd65d30d384a@cloudmailin.net
74
+ ------cloudmailinboundry
75
+ Content-Disposition: form-data; name="headers[Message-ID]"
76
+
77
+ <6021B546-125D-45E4-8619-7D1EC6529E3F@opennorth.ca>
78
+ ------cloudmailinboundry
79
+ Content-Disposition: form-data; name="headers[Subject]"
80
+
81
+ Test
82
+ ------cloudmailinboundry
83
+ Content-Disposition: form-data; name="headers[Mime-Version]"
84
+
85
+ 1.0
86
+ ------cloudmailinboundry
87
+ Content-Disposition: form-data; name="headers[Content-Transfer-Encoding]"
88
+
89
+ 7bit
90
+ ------cloudmailinboundry
91
+ Content-Disposition: form-data; name="headers[X-Google-DKIM-Signature]"
92
+
93
+ v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:subject:date:message-id:to :mime-version; bh=7QXxeoo2eFC71SO2+2Aan6OBpxRp1CgvZJtniYo2Vfs=; b=hUEOWvxIUI4/bEhDZJfcgaxEixsboqL/ffXpWQwiy9lLNvsNiDJjtUzQ8fZbaAptkf DMzHDJcXyWtJP/FvCIbq5pnxpmzCDbua3FEx0oA8OxgbBjraStm6Qri781LxJZJMC+jA C6g0D6wMFSwLv4L+nWywOXnfM4d5oEb4mMJHbUSh8zx8SHHehMBDUW++rRZTUL9ful88 0sLNKvIBJD3+plw9sLtYwW6PfTRr9X4YwFr0e9RHqyOlC0dmoNcbGyuuynM86D9BIi2p yK4YL9Y0+8ZL+zg/XrtxJlQb+XSo6x+GmEsaCRaXgSdVvmFdMsIndL/iqQH9B3LiDjYy 87iw==
94
+ ------cloudmailinboundry
95
+ Content-Disposition: form-data; name="headers[X-Gm-Message-State]"
96
+
97
+ ALoCoQkbW3nfV+/NutlB/vrs+q4iTk6ADjnuiL05fzCXtJOgp1dHetP+C2v68SEz1jqqJUD5tVGy
98
+ ------cloudmailinboundry
99
+ Content-Disposition: form-data; name="headers[X-Received]"
100
+
101
+ by 10.49.116.4 with SMTP id js4mr6948310qeb.14.1378525224314; Fri, 06 Sep 2013 20:40:24 -0700 (PDT)
102
+ ------cloudmailinboundry
103
+ Content-Disposition: form-data; name="headers[X-Mailer]"
104
+
105
+ Apple Mail (2.1283)
106
+ ------cloudmailinboundry
107
+ Content-Disposition: form-data; name="envelope[to]"
108
+
109
+ 5dae6f85cd65d30d384a@cloudmailin.net
110
+ ------cloudmailinboundry
111
+ Content-Disposition: form-data; name="envelope[recipients][0]"
112
+
113
+ 5dae6f85cd65d30d384a@cloudmailin.net
114
+ ------cloudmailinboundry
115
+ Content-Disposition: form-data; name="envelope[from]"
116
+
117
+ james@opennorth.ca
118
+ ------cloudmailinboundry
119
+ Content-Disposition: form-data; name="envelope[helo_domain]"
120
+
121
+ mail-qc0-f175.google.com
122
+ ------cloudmailinboundry
123
+ Content-Disposition: form-data; name="envelope[remote_ip]"
124
+
125
+ 209.85.216.175
126
+ ------cloudmailinboundry
127
+ Content-Disposition: form-data; name="envelope[spf][result]"
128
+
129
+ pass
130
+ ------cloudmailinboundry
131
+ Content-Disposition: form-data; name="envelope[spf][domain]"
132
+
133
+ opennorth.ca
134
+ ------cloudmailinboundry
135
+ Content-Disposition: form-data; name="attachments[0][file_name]"
136
+
137
+ foo.txt
138
+ ------cloudmailinboundry
139
+ Content-Disposition: form-data; name="attachments[0][content_type]"
140
+
141
+ text/plain
142
+ ------cloudmailinboundry
143
+ Content-Disposition: form-data; name="attachments[0][size]"
144
+
145
+ 57
146
+ ------cloudmailinboundry
147
+ Content-Disposition: form-data; name="attachments[0][disposition]"
148
+
149
+ attachment
150
+ ------cloudmailinboundry
151
+ Content-Disposition: form-data; name="attachments[0][url]"
152
+
153
+ http://multi-mail.s3.amazonaws.com/77a3b3e1ca79c38dbba8.txt
154
+ ------cloudmailinboundry
155
+ Content-Disposition: form-data; name="attachments[1][file_name]"
156
+
157
+ bar.txt
158
+ ------cloudmailinboundry
159
+ Content-Disposition: form-data; name="attachments[1][content_type]"
160
+
161
+ text/plain
162
+ ------cloudmailinboundry
163
+ Content-Disposition: form-data; name="attachments[1][size]"
164
+
165
+ 38
166
+ ------cloudmailinboundry
167
+ Content-Disposition: form-data; name="attachments[1][disposition]"
168
+
169
+ attachment
170
+ ------cloudmailinboundry
171
+ Content-Disposition: form-data; name="attachments[1][url]"
172
+
173
+ http://multi-mail.s3.amazonaws.com/40078e93b6340a97ac6c.txt
174
+ ------cloudmailinboundry--
@@ -0,0 +1,162 @@
1
+ HTTP/1.1 200 OK
2
+ Content-Length: 5616
3
+ Content-Type: multipart/form-data; boundary=----cloudmailinboundry
4
+ X-Request-Start: 1378667145491
5
+ X-Forwarded-Proto: http
6
+ X-Forwarded-Port: 80
7
+ X-Forwarded-For: 23.21.139.46
8
+ User-Agent: CloudMailin Server
9
+ Host: rackbin.herokuapp.com
10
+ Connection: close
11
+ Version: HTTP/1.1
12
+
13
+ ------cloudmailinboundry
14
+ Content-Disposition: form-data; name="message"
15
+
16
+ Return-Path: <james@opennorth.ca>
17
+ Received: by mail-ye0-f172.google.com with SMTP id m12so1634491yen.17 for <5dae6f85cd65d30d384a@cloudmailin.net>; Sun, 08 Sep 2013 12:05:44 -0700
18
+ Received: from [192.168.2.20] ([70.49.74.123]) by mx.google.com with ESMTPSA id f67sm11815958yhi.10.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 08 Sep 2013 12:05:43 -0700
19
+ Date: Mon, 15 Apr 2013 20:20:12 -0400
20
+ From: James McKinney <james@opennorth.ca>
21
+ To: 5dae6f85cd65d30d384a@cloudmailin.net
22
+ Message-ID: <DC9EC5EB-A676-4BC0-9FB9-5138A57D3401@opennorth.ca>
23
+ Subject: Test
24
+ Mime-Version: 1.0
25
+ Content-Type: multipart/alternative;
26
+ boundary="Apple-Mail=_8B1D5E62-C652-41B6-9CEC-8843EE3713E5";
27
+ charset=UTF-8
28
+ Content-Transfer-Encoding: 7bit
29
+ X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;
30
+ s=20130820; h=x-gm-message-state:from:content-type:subject:date:message-id:to
31
+ :mime-version; bh=Eye/0mnNzPNxhQHRh5c0KxsgC5nvzj9V8OhRUoD2EqI=;
32
+ b=G1y9Wl8m65324If+66oh8kxjsp5QomLt9oe4lJ0UO18ZWTN0ubrzLYVM3H7ZPXlIe+
33
+ /dshjHQTMEbaLnXDrhyHheKh4fnSoHNijsFWb/i3bf//oBTcO7BTCXV0C8pqRgjVNs1k
34
+ EgoD1r59AME0yV/BwAsoKC1dLPoJhIhIldAUr+1zVg4SO0u2R/H8vdxUc/Pr0h20Prkl
35
+ AHy9OY9Z+tcUzJhU2cx1iAOKgtWbBsIfgt0YYkN4LeHurPYlpEELrv+Mau4VqYrRjcOW
36
+ wylXo3vLl0yMvRoTJISM64FRn1j7vnKeFqPfrZ3sS/0Gk1BJvufeGScbRWvXaa7weivy yZSQ==
37
+ X-Gm-Message-State: ALoCoQn/etHTZ3ylr+kzu3sD8TGWAgvJWEy7HBZdDtxMNpMJ6F/rMTcMwsvSAtMRGcDs/aChJRou
38
+ X-Received: by 10.236.32.242 with SMTP id o78mr2367325yha.41.1378667144683;
39
+ Sun, 08 Sep 2013 12:05:44 -0700 (PDT)
40
+ X-Mailer: Apple Mail (2.1283)
41
+
42
+
43
+ --Apple-Mail=_8B1D5E62-C652-41B6-9CEC-8843EE3713E5
44
+ Content-Type: text/plain;
45
+ charset=us-ascii
46
+ Content-Transfer-Encoding: 7bit
47
+
48
+ bold text
49
+
50
+
51
+
52
+ some more bold text
53
+
54
+
55
+
56
+ some italic text
57
+
58
+ > multiline
59
+ > quoted
60
+ > text
61
+
62
+
63
+ --
64
+ Signature block
65
+ --Apple-Mail=_8B1D5E62-C652-41B6-9CEC-8843EE3713E5
66
+ Content-Type: multipart/mixed;
67
+ boundary="Apple-Mail=_4E1D2883-6004-4EC0-B972-7AFB71EC1463";
68
+ charset=UTF-8
69
+ Content-Transfer-Encoding: 7bit
70
+
71
+
72
+ --Apple-Mail=_4E1D2883-6004-4EC0-B972-7AFB71EC1463
73
+ Content-Type: text/html;
74
+ charset=us-ascii
75
+ Content-Transfer-Encoding: 7bit
76
+
77
+ <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>
78
+ --Apple-Mail=_4E1D2883-6004-4EC0-B972-7AFB71EC1463
79
+ Content-Type: text/html;
80
+ charset=us-ascii
81
+ Content-Transfer-Encoding: 7bit
82
+
83
+ <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>
84
+ --Apple-Mail=_4E1D2883-6004-4EC0-B972-7AFB71EC1463
85
+ Content-Type: text/html;
86
+ charset=us-ascii
87
+ Content-Transfer-Encoding: 7bit
88
+
89
+ <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>
90
+ --Apple-Mail=_4E1D2883-6004-4EC0-B972-7AFB71EC1463--
91
+
92
+ --Apple-Mail=_8B1D5E62-C652-41B6-9CEC-8843EE3713E5--
93
+
94
+ ------cloudmailinboundry
95
+ Content-Disposition: form-data; name="envelope[to]"
96
+
97
+ 5dae6f85cd65d30d384a@cloudmailin.net
98
+ ------cloudmailinboundry
99
+ Content-Disposition: form-data; name="envelope[recipients][0]"
100
+
101
+ 5dae6f85cd65d30d384a@cloudmailin.net
102
+ ------cloudmailinboundry
103
+ Content-Disposition: form-data; name="envelope[from]"
104
+
105
+ james@opennorth.ca
106
+ ------cloudmailinboundry
107
+ Content-Disposition: form-data; name="envelope[helo_domain]"
108
+
109
+ mail-ye0-f172.google.com
110
+ ------cloudmailinboundry
111
+ Content-Disposition: form-data; name="envelope[remote_ip]"
112
+
113
+ 209.85.213.172
114
+ ------cloudmailinboundry
115
+ Content-Disposition: form-data; name="envelope[spf][result]"
116
+
117
+ pass
118
+ ------cloudmailinboundry
119
+ Content-Disposition: form-data; name="envelope[spf][domain]"
120
+
121
+ opennorth.ca
122
+ ------cloudmailinboundry
123
+ Content-Disposition: form-data; name="attachments[0][file_name]"
124
+
125
+ foo.txt
126
+ ------cloudmailinboundry
127
+ Content-Disposition: form-data; name="attachments[0][content_type]"
128
+
129
+ text/plain
130
+ ------cloudmailinboundry
131
+ Content-Disposition: form-data; name="attachments[0][size]"
132
+
133
+ 57
134
+ ------cloudmailinboundry
135
+ Content-Disposition: form-data; name="attachments[0][disposition]"
136
+
137
+ attachment
138
+ ------cloudmailinboundry
139
+ Content-Disposition: form-data; name="attachments[0][url]"
140
+
141
+ http://multi-mail.s3.amazonaws.com/eacd11a51b85a9eebc62.txt
142
+ ------cloudmailinboundry
143
+ Content-Disposition: form-data; name="attachments[1][file_name]"
144
+
145
+ bar.txt
146
+ ------cloudmailinboundry
147
+ Content-Disposition: form-data; name="attachments[1][content_type]"
148
+
149
+ text/plain
150
+ ------cloudmailinboundry
151
+ Content-Disposition: form-data; name="attachments[1][size]"
152
+
153
+ 38
154
+ ------cloudmailinboundry
155
+ Content-Disposition: form-data; name="attachments[1][disposition]"
156
+
157
+ attachment
158
+ ------cloudmailinboundry
159
+ Content-Disposition: form-data; name="attachments[1][url]"
160
+
161
+ http://multi-mail.s3.amazonaws.com/2f50cc8bf6accb48d8a8.txt
162
+ ------cloudmailinboundry--
@@ -1,131 +1,109 @@
1
1
  HTTP/1.1 200 OK
2
- User-Agent: Python-urllib/2.7
3
- Host: requestb.in
4
- Content-Type: multipart/form-data; boundary=127.0.0.1.1002.5631.1366071615.667.35498
5
- Content-Length: 9652
2
+ Content-Length: 9568
3
+ Content-Type: multipart/form-data; boundary=515e0b8d-a7e3-43ef-808e-f27b75edf470
4
+ X-Request-Start: 1384323536211
5
+ X-Forwarded-Proto: http
6
+ X-Forwarded-Port: 80
7
+ X-Forwarded-For: 198.61.253.118
8
+ User-Agent: mailgun/treq-0.2.0
9
+ Host: rackbin.herokuapp.com
6
10
  Connection: close
11
+ Accept-Encoding: gzip
12
+ Version: HTTP/1.1
7
13
 
8
- --127.0.0.1.1002.5631.1366071615.667.35498
9
- Content-Disposition: form-data; name="recipient"
10
-
11
- foo+bar@multimail.mailgun.org
12
- --127.0.0.1.1002.5631.1366071615.667.35498
13
- Content-Disposition: form-data; name="sender"
14
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
15
+ Content-Disposition: form-data; name="Content-Type"
14
16
 
15
- james@opennorth.ca
16
- --127.0.0.1.1002.5631.1366071615.667.35498
17
- Content-Disposition: form-data; name="subject"
17
+ multipart/alternative; boundary="Apple-Mail=_F32ED8AB-3EA4-4E4B-BEB0-E2DE3CCABED3"
18
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
19
+ Content-Disposition: form-data; name="Date"
18
20
 
19
- Test
20
- --127.0.0.1.1002.5631.1366071615.667.35498
21
- Content-Disposition: form-data; name="from"
21
+ Mon, 15 Apr 2013 20:20:12 -0400
22
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
23
+ Content-Disposition: form-data; name="From"
22
24
 
23
25
  James McKinney <james@opennorth.ca>
24
- --127.0.0.1.1002.5631.1366071615.667.35498
25
- Content-Disposition: form-data; name="Received"
26
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
27
+ Content-Disposition: form-data; name="Message-Id"
26
28
 
27
- by luna.mailgun.net with SMTP mgrt 8739881119761; Tue, 16 Apr 2013 00:20:15 +0000
28
- --127.0.0.1.1002.5631.1366071615.667.35498
29
- Content-Disposition: form-data; name="X-Envelope-From"
29
+ <E102015D-F580-4316-81FA-7324838A3AE8@opennorth.ca>
30
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
31
+ Content-Disposition: form-data; name="Mime-Version"
30
32
 
31
- <james@opennorth.ca>
32
- --127.0.0.1.1002.5631.1366071615.667.35498
33
+ 1.0 (Apple Message framework v1283)
34
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
33
35
  Content-Disposition: form-data; name="Received"
34
36
 
35
- 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)
36
- --127.0.0.1.1002.5631.1366071615.667.35498
37
+ by luna.mailgun.net with SMTP mgrt 8737789986189; Wed, 13 Nov 2013 06:18:54 +0000
38
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
37
39
  Content-Disposition: form-data; name="Received"
38
40
 
39
- 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)
40
- --127.0.0.1.1002.5631.1366071615.667.35498
41
- Content-Disposition: form-data; name="X-Google-Dkim-Signature"
41
+ from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by mxa.mailgun.org with ESMTP id 528319cc.6495df0-in1; Wed, 13 Nov 2013 06:18:52 -0000 (UTC)
42
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
43
+ Content-Disposition: form-data; name="Received"
42
44
 
43
- 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==
44
- --127.0.0.1.1002.5631.1366071615.667.35498
45
- Content-Disposition: form-data; name="X-Received"
45
+ by mail-ie0-f169.google.com with SMTP id tp5so5138299ieb.28 for <foo+bar@multimail.mailgun.org>; Tue, 12 Nov 2013 22:18:51 -0800 (PST)
46
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
47
+ Content-Disposition: form-data; name="Received"
46
48
 
47
- by 10.42.155.136 with SMTP id u8mr16615icw.26.1366071614191; Mon, 15 Apr 2013 17:20:14 -0700 (PDT)
48
- --127.0.0.1.1002.5631.1366071615.667.35498
49
+ from [192.168.0.104] (69-165-202-100.cable.teksavvy.com. [69.165.202.100]) by mx.google.com with ESMTPSA id ft2sm28846279igb.5.2013.11.12.22.18.50 for <foo+bar@multimail.mailgun.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 12 Nov 2013 22:18:50 -0800 (PST)
50
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
49
51
  Content-Disposition: form-data; name="Return-Path"
50
52
 
51
53
  <james@opennorth.ca>
52
- --127.0.0.1.1002.5631.1366071615.667.35498
53
- Content-Disposition: form-data; name="Received"
54
-
55
- 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)
56
- --127.0.0.1.1002.5631.1366071615.667.35498
57
- Content-Disposition: form-data; name="From"
58
-
59
- James McKinney <james@opennorth.ca>
60
- --127.0.0.1.1002.5631.1366071615.667.35498
61
- Content-Disposition: form-data; name="Content-Type"
62
-
63
- multipart/alternative; boundary="Apple-Mail=_D289CF3C-691D-4372-B921-FE97254B7A92"
64
- --127.0.0.1.1002.5631.1366071615.667.35498
54
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
65
55
  Content-Disposition: form-data; name="Subject"
66
56
 
67
57
  Test
68
- --127.0.0.1.1002.5631.1366071615.667.35498
69
- Content-Disposition: form-data; name="Date"
70
-
71
- Mon, 15 Apr 2013 20:20:12 -0400
72
- --127.0.0.1.1002.5631.1366071615.667.35498
73
- Content-Disposition: form-data; name="Message-Id"
74
-
75
- <D6B0F2D4-0AB6-4BE1-8D40-75BFD0C26E64@opennorth.ca>
76
- --127.0.0.1.1002.5631.1366071615.667.35498
58
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
77
59
  Content-Disposition: form-data; name="To"
78
60
 
79
61
  foo+bar@multimail.mailgun.org
80
- --127.0.0.1.1002.5631.1366071615.667.35498
81
- Content-Disposition: form-data; name="Mime-Version"
82
-
83
- 1.0 (Apple Message framework v1283)
84
- --127.0.0.1.1002.5631.1366071615.667.35498
85
- Content-Disposition: form-data; name="X-Mailer"
62
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
63
+ Content-Disposition: form-data; name="X-Envelope-From"
86
64
 
87
- Apple Mail (2.1283)
88
- --127.0.0.1.1002.5631.1366071615.667.35498
65
+ <james@opennorth.ca>
66
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
89
67
  Content-Disposition: form-data; name="X-Gm-Message-State"
90
68
 
91
- ALoCoQm7HZ+xBsab1OTc5IP/6gSIc3SwGeh4lRf+obkhtV8tpZr9UlJRNMg8azp72ybxsGko66Jg
92
- --127.0.0.1.1002.5631.1366071615.667.35498
93
- Content-Disposition: form-data; name="X-Mailgun-Sflag"
94
-
95
- No
96
- --127.0.0.1.1002.5631.1366071615.667.35498
97
- Content-Disposition: form-data; name="X-Mailgun-Sscore"
69
+ ALoCoQk11VtHcmEHyz7LAp/gwifJuLtMzqnUbPCvmp8oXtGgpW1QJQXk9t4jTiohG+keNfJ+saP9
70
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
71
+ Content-Disposition: form-data; name="X-Google-Dkim-Signature"
98
72
 
99
- 0.0
100
- --127.0.0.1.1002.5631.1366071615.667.35498
101
- Content-Disposition: form-data; name="X-Mailgun-Spf"
73
+ v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:subject:date:message-id:to :mime-version; bh=Rvszqrk+7pivDAsfuNjqXZ+FiMJ+KoSGAQPGVjtskjA=; b=aeSBqvoSo8cVLdycPD/v+2GznD2wFW3wPPphBKPRbvbRxogxOWmvUQhuDTsgjWQVqt a8wW2Qjrsg4NEmwt/dH7Uz6yCGZTifmZKRVAtuNcW5dhfwDQQXBYFQkPOa7EAbiFcwr2 4shE0SSpimPqhS17tFWwRzPtigkEX23LhUUQRMHdFvebIbsl+9pkoEuRNntx5uzirtSm Sn1n2J1CJygLTsDeQgor0teAIuAWNRV9au63HD79BNUZniVr5/kTDEKANBwtTHanXbXX VraGDRgmdeMvisUB9mDAmcNB0xoNyAC2Qlex9YI3fEjcBQ6xBnZ9Y4Wkhns7ucya0JMz zB5Q==
74
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
75
+ Content-Disposition: form-data; name="X-Mailer"
102
76
 
103
- Neutral
104
- --127.0.0.1.1002.5631.1366071615.667.35498
77
+ Apple Mail (2.1283)
78
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
105
79
  Content-Disposition: form-data; name="X-Mailgun-Incoming"
106
80
 
107
81
  Yes
108
- --127.0.0.1.1002.5631.1366071615.667.35498
109
- Content-Disposition: form-data; name="message-headers"
82
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
83
+ Content-Disposition: form-data; name="X-Mailgun-Sflag"
110
84
 
111
- [["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"]]
112
- --127.0.0.1.1002.5631.1366071615.667.35498
113
- Content-Disposition: form-data; name="timestamp"
85
+ No
86
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
87
+ Content-Disposition: form-data; name="X-Mailgun-Spf"
114
88
 
115
- 1366071615
116
- --127.0.0.1.1002.5631.1366071615.667.35498
117
- Content-Disposition: form-data; name="token"
89
+ Pass
90
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
91
+ Content-Disposition: form-data; name="X-Mailgun-Sscore"
118
92
 
119
- 5o56tmpwd3dnwthehwclemd-i-7u2gv9vb3u745ywj67d0mc87
120
- --127.0.0.1.1002.5631.1366071615.667.35498
121
- Content-Disposition: form-data; name="signature"
93
+ -0.7
94
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
95
+ Content-Disposition: form-data; name="X-Received"
122
96
 
123
- bc2ab6c1080d52f2a06928b93f21e86c2d28c548e2ef64354f8ba1a95bb53cd6
124
- --127.0.0.1.1002.5631.1366071615.667.35498
97
+ by 10.50.26.70 with SMTP id j6mr18016994igg.24.1384323531853; Tue, 12 Nov 2013 22:18:51 -0800 (PST)
98
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
125
99
  Content-Disposition: form-data; name="attachment-count"
126
100
 
127
101
  2
128
- --127.0.0.1.1002.5631.1366071615.667.35498
102
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
103
+ Content-Disposition: form-data; name="body-html"
104
+
105
+ <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>
106
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
129
107
  Content-Disposition: form-data; name="body-plain"
130
108
 
131
109
  bold text
@@ -145,15 +123,36 @@ some italic text
145
123
 
146
124
  --
147
125
  Signature block
148
- --127.0.0.1.1002.5631.1366071615.667.35498
149
- Content-Disposition: form-data; name="body-html"
126
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
127
+ Content-Disposition: form-data; name="from"
150
128
 
151
- <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>
152
- --127.0.0.1.1002.5631.1366071615.667.35498
129
+ James McKinney <james@opennorth.ca>
130
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
131
+ Content-Disposition: form-data; name="message-headers"
132
+
133
+ [["Received", "by luna.mailgun.net with SMTP mgrt 8737789986189; Wed, 13 Nov 2013 06:18:54 +0000"], ["X-Envelope-From", "<james@opennorth.ca>"], ["Received", "from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by mxa.mailgun.org with ESMTP id 528319cc.6495df0-in1; Wed, 13 Nov 2013 06:18:52 -0000 (UTC)"], ["Received", "by mail-ie0-f169.google.com with SMTP id tp5so5138299ieb.28 for <foo+bar@multimail.mailgun.org>; Tue, 12 Nov 2013 22:18:51 -0800 (PST)"], ["X-Google-Dkim-Signature", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:subject:date:message-id:to :mime-version; bh=Rvszqrk+7pivDAsfuNjqXZ+FiMJ+KoSGAQPGVjtskjA=; b=aeSBqvoSo8cVLdycPD/v+2GznD2wFW3wPPphBKPRbvbRxogxOWmvUQhuDTsgjWQVqt a8wW2Qjrsg4NEmwt/dH7Uz6yCGZTifmZKRVAtuNcW5dhfwDQQXBYFQkPOa7EAbiFcwr2 4shE0SSpimPqhS17tFWwRzPtigkEX23LhUUQRMHdFvebIbsl+9pkoEuRNntx5uzirtSm Sn1n2J1CJygLTsDeQgor0teAIuAWNRV9au63HD79BNUZniVr5/kTDEKANBwtTHanXbXX VraGDRgmdeMvisUB9mDAmcNB0xoNyAC2Qlex9YI3fEjcBQ6xBnZ9Y4Wkhns7ucya0JMz zB5Q=="], ["X-Gm-Message-State", "ALoCoQk11VtHcmEHyz7LAp/gwifJuLtMzqnUbPCvmp8oXtGgpW1QJQXk9t4jTiohG+keNfJ+saP9"], ["X-Received", "by 10.50.26.70 with SMTP id j6mr18016994igg.24.1384323531853; Tue, 12 Nov 2013 22:18:51 -0800 (PST)"], ["Return-Path", "<james@opennorth.ca>"], ["Received", "from [192.168.0.104] (69-165-202-100.cable.teksavvy.com. [69.165.202.100]) by mx.google.com with ESMTPSA id ft2sm28846279igb.5.2013.11.12.22.18.50 for <foo+bar@multimail.mailgun.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 12 Nov 2013 22:18:50 -0800 (PST)"], ["From", "James McKinney <james@opennorth.ca>"], ["Content-Type", "multipart/alternative; boundary=\"Apple-Mail=_F32ED8AB-3EA4-4E4B-BEB0-E2DE3CCABED3\""], ["Subject", "Test"], ["Date", "Mon, 15 Apr 2013 20:20:12 -0400"], ["Message-Id", "<E102015D-F580-4316-81FA-7324838A3AE8@opennorth.ca>"], ["To", "foo+bar@multimail.mailgun.org"], ["Mime-Version", "1.0 (Apple Message framework v1283)"], ["X-Mailer", "Apple Mail (2.1283)"], ["X-Mailgun-Incoming", "Yes"], ["X-Mailgun-Sflag", "No"], ["X-Mailgun-Sscore", "-0.7"], ["X-Mailgun-Spf", "Pass"]]
134
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
135
+ Content-Disposition: form-data; name="recipient"
136
+
137
+ foo+bar@multimail.mailgun.org
138
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
139
+ Content-Disposition: form-data; name="sender"
140
+
141
+ james@opennorth.ca
142
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
143
+ Content-Disposition: form-data; name="signature"
144
+
145
+ bc2ab6c1080d52f2a06928b93f21e86c2d28c548e2ef64354f8ba1a95bb53cd6
146
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
153
147
  Content-Disposition: form-data; name="stripped-html"
154
148
 
155
149
  <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>
156
- --127.0.0.1.1002.5631.1366071615.667.35498
150
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
151
+ Content-Disposition: form-data; name="stripped-signature"
152
+
153
+ --
154
+ Signature block
155
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
157
156
  Content-Disposition: form-data; name="stripped-text"
158
157
 
159
158
  bold text
@@ -165,23 +164,30 @@ some more bold text
165
164
 
166
165
 
167
166
  some italic text
168
- --127.0.0.1.1002.5631.1366071615.667.35498
169
- Content-Disposition: form-data; name="stripped-signature"
167
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
168
+ Content-Disposition: form-data; name="subject"
170
169
 
171
- --
172
- Signature block
173
- --127.0.0.1.1002.5631.1366071615.667.35498
170
+ Test
171
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
172
+ Content-Disposition: form-data; name="timestamp"
173
+
174
+ 1366071615
175
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
176
+ Content-Disposition: form-data; name="token"
177
+
178
+ 5o56tmpwd3dnwthehwclemd-i-7u2gv9vb3u745ywj67d0mc87
179
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
174
180
  Content-Disposition: form-data; name="attachment-1"; filename="foo.txt"
175
181
  Content-Type: text/plain
176
182
  Content-Length: 58
177
183
 
178
184
  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
179
185
 
180
- --127.0.0.1.1002.5631.1366071615.667.35498
186
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470
181
187
  Content-Disposition: form-data; name="attachment-2"; filename="bar.txt"
182
188
  Content-Type: text/plain
183
189
  Content-Length: 39
184
190
 
185
191
  Nam accumsan euismod eros et rhoncus.
186
192
 
187
- --127.0.0.1.1002.5631.1366071615.667.35498--
193
+ --515e0b8d-a7e3-43ef-808e-f27b75edf470--