Files

386 lines
9.3 KiB
JSON

{
"messages": [
{
"id": 0,
"root": 0,
"container": null,
"source": "raw",
"text_body": [
2
],
"html_body": [
2
],
"attachments": [
3,
4
],
"has_attachments": true
}
],
"parts": [
{
"id": 0,
"message": 0,
"parent": null,
"kind": "multipart",
"children": [
1,
4
],
"encoding": "none",
"flags": [],
"roles": [],
"role": "container",
"offset_header": 0,
"offset_body": 414,
"offset_end": 2026,
"headers": [
{
"name": "To",
"value": {
"address": [
{
"mailbox": {
"name": null,
"address": "test@example.com"
}
}
]
},
"offset_field": 0,
"offset_start": 3,
"offset_end": 21
},
{
"name": "From",
"value": {
"address": [
{
"mailbox": {
"name": null,
"address": "test@example.com"
}
}
]
},
"offset_field": 21,
"offset_start": 26,
"offset_end": 44
},
{
"name": "Subject",
"value": {
"text": "29 (HTML + embedded image) + attachment"
},
"offset_field": 44,
"offset_start": 52,
"offset_end": 93
},
{
"name": "Message-ID",
"value": {
"text_list": [
"cdf5bf44-03a4-4be1-c9c7-88cb4a5838ed@example.com"
]
},
"offset_field": 93,
"offset_start": 104,
"offset_end": 156
},
{
"name": "Date",
"value": {
"date_time": {
"year": 2017,
"month": 12,
"day": 30,
"hour": 20,
"minute": 19,
"second": 46,
"tz_before_gmt": false,
"tz_hour": 1,
"tz_minute": 0
}
},
"offset_field": 156,
"offset_start": 161,
"offset_end": 194
},
{
"name": "User-Agent",
"value": {
"text": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101\n Thunderbird/59.0a1"
},
"offset_field": 194,
"offset_start": 205,
"offset_end": 291
},
{
"name": "MIME-Version",
"value": {
"text": "1.0"
},
"offset_field": 291,
"offset_start": 304,
"offset_end": 309
},
{
"name": "Content-Type",
"value": {
"content_type": {
"type": "multipart",
"subtype": "mixed",
"attributes": [
[
"boundary",
"------------F5CEBCED9FC06ACB07B3D485"
]
]
}
},
"offset_field": 309,
"offset_start": 322,
"offset_end": 389
},
{
"name": "Content-Language",
"value": {
"text_list": [
"en-GB"
]
},
"offset_field": 389,
"offset_start": 406,
"offset_end": 413
}
]
},
{
"id": 1,
"message": 0,
"parent": 0,
"kind": "multipart",
"children": [
2,
3
],
"encoding": "none",
"flags": [],
"roles": [],
"role": "container",
"offset_header": 498,
"offset_body": 581,
"offset_end": 1593,
"headers": [
{
"name": "Content-Type",
"value": {
"content_type": {
"type": "multipart",
"subtype": "related",
"attributes": [
[
"boundary",
"------------1722706F2C203820A6CAA06F"
]
]
}
},
"offset_field": 498,
"offset_start": 511,
"offset_end": 580
}
]
},
{
"id": 2,
"message": 0,
"parent": 1,
"kind": "html",
"encoding": "quoted-printable",
"flags": [],
"roles": [
"text_body",
"html_body"
],
"role": "html_body",
"offset_header": 621,
"offset_body": 707,
"offset_end": 982,
"headers": [
{
"name": "Content-Type",
"value": {
"content_type": {
"type": "text",
"subtype": "html",
"attributes": [
[
"charset",
"utf-8"
]
]
}
},
"offset_field": 621,
"offset_start": 634,
"offset_end": 662
},
{
"name": "Content-Transfer-Encoding",
"value": {
"text": "quoted-printable"
},
"offset_field": 662,
"offset_start": 688,
"offset_end": 706
}
],
"text": "<html>\n <head>\n\n <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\n </head>\n <body text=\"#000000\" bgcolor=\"#FFFFFF\">\n <p><tt>Search for höhö</tt></p>\n <p><img src=\"cid:part1.8C5E6A81.D0C1B91A@example.com\" alt=\"\"></p>\n </body>\n</html>\n",
"decode_problems": [
"malformed_transfer_encoding"
]
},
{
"id": 3,
"message": 0,
"parent": 1,
"kind": "inline_binary",
"encoding": "base64",
"flags": [],
"roles": [
"attachment",
"inline"
],
"role": "attachment",
"offset_header": 1022,
"offset_body": 1223,
"offset_end": 1551,
"headers": [
{
"name": "Content-Type",
"value": {
"content_type": {
"type": "image",
"subtype": "png",
"attributes": [
[
"name",
"kigaaldcbanejcbi.png"
]
]
}
},
"offset_field": 1022,
"offset_start": 1035,
"offset_end": 1076
},
{
"name": "Content-Transfer-Encoding",
"value": {
"text": "base64"
},
"offset_field": 1076,
"offset_start": 1102,
"offset_end": 1110
},
{
"name": "Content-ID",
"value": {
"text_list": [
"part1.8C5E6A81.D0C1B91A@example.com"
]
},
"offset_field": 1110,
"offset_start": 1121,
"offset_end": 1160
},
{
"name": "Content-Disposition",
"value": {
"content_type": {
"type": "inline",
"subtype": null,
"attributes": [
[
"filename",
"kigaaldcbanejcbi.png"
]
]
}
},
"offset_field": 1160,
"offset_start": 1180,
"offset_end": 1222
}
],
"binary": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAASdEVYdFNvZnR3YXJlAEdyZWVuc2hvdF5VCAUAAABpSURBVDhP3dA7EoAgDEXR7Ew+bgdx/018BEYyiICtb27FcCig3Z7Im6gK3ZxN/RcQkb6aK8DjtuRMzMEAiNGvlFpgtyOdEjFz14xA10wA1pg5wLRZAthtVgEm5vGtA4DhvILaO8A+AuYLy0U5xUUpL8kAAAAASUVORK5CYII=",
"decode_problems": []
},
{
"id": 4,
"message": 0,
"parent": 0,
"kind": "binary",
"encoding": "base64",
"flags": [],
"roles": [
"attachment"
],
"role": "attachment",
"offset_header": 1633,
"offset_body": 1770,
"offset_end": 1984,
"headers": [
{
"name": "Content-Type",
"value": {
"content_type": {
"type": "image",
"subtype": "png",
"attributes": [
[
"name",
"attach2.png"
]
]
}
},
"offset_field": 1633,
"offset_start": 1646,
"offset_end": 1678
},
{
"name": "Content-Transfer-Encoding",
"value": {
"text": "base64"
},
"offset_field": 1678,
"offset_start": 1704,
"offset_end": 1712
},
{
"name": "Content-Disposition",
"value": {
"content_type": {
"type": "attachment",
"subtype": null,
"attributes": [
[
"filename",
"attach2.png"
]
]
}
},
"offset_field": 1712,
"offset_start": 1732,
"offset_end": 1769
}
],
"binary": "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAASdEVYdFNvZnR3YXJlAEdyZWVuc2hvdF5VCAUAAAAVSURBVChTY/hPNBhVOqqUaKX//wMA005J0zvV0VsAAAAASUVORK5CYII=",
"decode_problems": []
}
]
}