Files
mail-parser/tests/rfc/002.json
T

736 lines
19 KiB
JSON

{
"html_body": [
1
],
"text_body": [
1
],
"attachments": [
2
],
"parts": [
{
"headers": [
{
"name": {
"Rfc": "from"
},
"value": {
"Address": {
"name": "Al Gore",
"address": "vice-president@whitehouse.gov"
}
},
"offset_field": 0,
"offset_start": 5,
"offset_end": 47
},
{
"name": {
"Rfc": "to"
},
"value": {
"Address": {
"name": "White House Transportation Coordinator",
"address": "transport@whitehouse.gov"
}
},
"offset_field": 47,
"offset_start": 50,
"offset_end": 123
},
{
"name": {
"Rfc": "subject"
},
"value": {
"Text": "[Fwd: Map of Argentina with Description]"
},
"offset_field": 123,
"offset_start": 131,
"offset_end": 173
},
{
"name": {
"Rfc": "content_type"
},
"value": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": [
[
"boundary",
"D7F------------D7FD5A0B8AB9C65CCDBFA872"
]
]
}
},
"offset_field": 173,
"offset_start": 186,
"offset_end": 269
}
],
"is_encoding_problem": false,
"body": {
"Multipart": [
1,
2
]
},
"offset_header": 0,
"offset_body": 270,
"offset_end": 2651
},
{
"headers": [
{
"name": {
"Rfc": "content_type"
},
"value": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": [
[
"charset",
"us-ascii"
]
]
}
},
"offset_field": 357,
"offset_start": 370,
"offset_end": 400
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"value": {
"Text": "7bit"
},
"offset_field": 400,
"offset_start": 426,
"offset_end": 432
}
],
"is_encoding_problem": false,
"body": {
"Text": "Fred,\n\nFire up Air Force One! We're going South!\n\nThanks,\nAl"
},
"offset_header": 357,
"offset_body": 433,
"offset_end": 494
},
{
"headers": [
{
"name": {
"Rfc": "content_type"
},
"value": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822",
"attributes": null
}
},
"offset_field": 537,
"offset_start": 550,
"offset_end": 566
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"value": {
"Text": "7bit"
},
"offset_field": 566,
"offset_start": 592,
"offset_end": 598
},
{
"name": {
"Rfc": "content_disposition"
},
"value": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": null
}
},
"offset_field": 598,
"offset_start": 618,
"offset_end": 626
}
],
"is_encoding_problem": false,
"body": {
"Message": {
"html_body": [
1,
2
],
"text_body": [
1,
2
],
"attachments": [
2
],
"parts": [
{
"headers": [
{
"name": {
"Rfc": "return_path"
},
"value": {
"Text": "president@whitehouse.gov"
},
"offset_field": 627,
"offset_start": 639,
"offset_end": 667
},
{
"name": {
"Rfc": "received"
},
"value": {
"Text": "from mailhost.whitehouse.gov ([192.168.51.200])\n by heartbeat.whitehouse.gov (8.8.8/8.8.8) with ESMTP id SAA22453\n for <vice-president@heartbeat.whitehouse.gov>;\n Mon, 13 Aug 1998 l8:14:23 +1000"
},
"offset_field": 667,
"offset_start": 676,
"offset_end": 893
},
{
"name": {
"Rfc": "received"
},
"value": {
"Text": "from the_big_box.whitehouse.gov ([192.168.51.50])\n by mailhost.whitehouse.gov (8.8.8/8.8.7) with ESMTP id RAA20366\n for vice-president@whitehouse.gov; Mon, 13 Aug 1998 17:42:41 +1000"
},
"offset_field": 893,
"offset_start": 902,
"offset_end": 1100
},
{
"name": {
"Rfc": "date"
},
"value": {
"DateTime": {
"year": 1998,
"month": 8,
"day": 13,
"hour": 17,
"minute": 42,
"second": 41,
"tz_before_gmt": false,
"tz_hour": 10,
"tz_minute": 0
}
},
"offset_field": 1100,
"offset_start": 1105,
"offset_end": 1138
},
{
"name": {
"Rfc": "message_id"
},
"value": {
"Text": "199804130742.RAA20366@mai1host.whitehouse.gov"
},
"offset_field": 1138,
"offset_start": 1149,
"offset_end": 1198
},
{
"name": {
"Rfc": "from"
},
"value": {
"Address": {
"name": "Bill Clinton",
"address": "president@whitehouse.gov"
}
},
"offset_field": 1198,
"offset_start": 1203,
"offset_end": 1244
},
{
"name": {
"Rfc": "to"
},
"value": {
"Address": {
"name": "A1 Gore (The Enforcer)",
"address": "vice-president@whitehouse.gov"
}
},
"offset_field": 1244,
"offset_start": 1247,
"offset_end": 1303
},
{
"name": {
"Rfc": "subject"
},
"value": {
"Text": "Map of Argentina with Description"
},
"offset_field": 1303,
"offset_start": 1311,
"offset_end": 1347
},
{
"name": {
"Rfc": "mime_version"
},
"value": {
"Text": "1.0"
},
"offset_field": 1347,
"offset_start": 1360,
"offset_end": 1365
},
{
"name": {
"Rfc": "content_type"
},
"value": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": [
[
"boundary",
"DC8------------DC8638F443D87A7F0726DEF7"
]
]
}
},
"offset_field": 1365,
"offset_start": 1378,
"offset_end": 1461
}
],
"is_encoding_problem": false,
"body": {
"Multipart": [
1,
2
]
},
"offset_header": 627,
"offset_body": 1462,
"offset_end": 2606
},
{
"headers": [
{
"name": {
"Rfc": "content_type"
},
"value": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": [
[
"charset",
"us-ascii"
]
]
}
},
"offset_field": 1549,
"offset_start": 1562,
"offset_end": 1592
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"value": {
"Text": "7bit"
},
"offset_field": 1592,
"offset_start": 1618,
"offset_end": 1624
}
],
"is_encoding_problem": false,
"body": {
"Text": "Hi A1,\n\nI finally figured out this MIME thing. Pretty cool. I'll send you\nsome sax music in .au files next week!\n\nAnyway, the attached image is really too small to get a good look at\nArgentina. Try this for a much better map:\n\n http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm\n\nThen again, shouldn't the CIA have something like that?\n\nBill"
},
"offset_header": 1549,
"offset_body": 1625,
"offset_end": 1980
},
{
"headers": [
{
"name": {
"Rfc": "content_type"
},
"value": {
"ContentType": {
"c_type": "image",
"c_subtype": "gif",
"attributes": [
[
"name",
"map_of_Argentina.gif"
]
]
}
},
"offset_field": 2023,
"offset_start": 2036,
"offset_end": 2076
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"value": {
"Text": "base64"
},
"offset_field": 2076,
"offset_start": 2102,
"offset_end": 2110
},
{
"name": {
"Rfc": "content_disposition"
},
"value": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": [
[
"fi1ename",
"map_of_Argentina.gif"
]
]
}
},
"offset_field": 2110,
"offset_start": 2130,
"offset_end": 2171
}
],
"is_encoding_problem": false,
"body": {
"InlineBinary": [
71,
77,
70,
56,
61,
97,
37,
0,
53,
0,
162,
0,
0,
255,
255,
255,
255,
251,
240,
255,
232,
154,
125,
125,
125,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
44,
0,
0,
0,
0,
37,
0,
53,
0,
0,
3,
237,
8,
186,
220,
254,
112,
192,
73,
163,
4,
34,
235,
157,
9,
225,
96,
40,
12,
215,
8,
126,
166,
72,
42,
169,
224,
189,
94,
187,
173,
152,
25,
187,
132,
2,
183,
180,
253,
245,
128,
87,
0,
136,
82,
149,
66,
177,
133,
71,
169,
44,
114,
122,
39,
77,
238,
197,
0,
6,
157,
26,
232,
38,
70,
237,
194,
154,
32,
109,
231,
183,
236,
86,
173,
216,
209,
81,
74,
158,
150,
29,
196,
240,
186,
51,
182,
94,
225,
202,
231,
156,
123,
166,
226,
131,
122,
44,
82,
117,
110,
126,
77,
93,
51,
123,
56,
94,
95,
66,
67,
121,
89,
138,
48,
4,
67,
118,
118,
65,
144,
25,
98,
109,
75,
58,
134,
76,
128,
137,
130,
116,
46,
76,
147,
127,
88,
155,
40,
141,
167,
125,
169,
115,
46,
132,
133,
157,
141,
114,
163,
99,
139,
94,
158,
58,
58,
182,
53,
108,
178,
77,
160,
105,
106,
183,
184,
99,
87,
83,
166,
70,
198,
199,
178,
147,
196,
154,
176,
108,
55,
39,
209,
145,
205,
212,
208,
147,
45,
98,
28,
219,
220,
60,
211,
72,
225,
50,
222,
41,
215,
204,
191,
45,
47,
50,
162,
235,
34,
219,
238,
197,
240,
214,
242,
230,
227,
185,
224,
237,
38,
231,
243,
238,
43,
72,
8,
28,
72,
72,
160,
193,
131,
8,
19,
42,
60,
152,
0,
0,
59
]
},
"offset_header": 2023,
"offset_body": 2172,
"offset_end": 2561
}
]
}
},
"offset_header": 537,
"offset_body": 627,
"offset_end": 2606
}
]
}