Files

284 lines
6.8 KiB
JSON

{
"messages": [
{
"id": 0,
"root": 0,
"container": null,
"source": "raw",
"text_body": [
1
],
"html_body": [
1
],
"attachments": [
2
],
"has_attachments": false
}
],
"parts": [
{
"id": 0,
"message": 0,
"parent": null,
"kind": "multipart",
"children": [
1,
2
],
"encoding": "none",
"flags": [],
"roles": [],
"role": "container",
"offset_header": 0,
"offset_body": 401,
"offset_end": 1457,
"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": "25 HTML + embedded image"
},
"offset_field": 44,
"offset_start": 52,
"offset_end": 78
},
{
"name": "Message-ID",
"value": {
"text_list": [
"c1ddcd5d-71c1-9c9d-1b81-e3b9abb99030@example.com"
]
},
"offset_field": 78,
"offset_start": 89,
"offset_end": 141
},
{
"name": "Date",
"value": {
"date_time": {
"year": 2017,
"month": 12,
"day": 30,
"hour": 19,
"minute": 26,
"second": 23,
"tz_before_gmt": false,
"tz_hour": 1,
"tz_minute": 0
}
},
"offset_field": 141,
"offset_start": 146,
"offset_end": 179
},
{
"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": 179,
"offset_start": 190,
"offset_end": 276
},
{
"name": "MIME-Version",
"value": {
"text": "1.0"
},
"offset_field": 276,
"offset_start": 289,
"offset_end": 294
},
{
"name": "Content-Type",
"value": {
"content_type": {
"type": "multipart",
"subtype": "related",
"attributes": [
[
"boundary",
"------------B2BBD36A919AB2B2F84E2469"
]
]
}
},
"offset_field": 294,
"offset_start": 307,
"offset_end": 376
},
{
"name": "Content-Language",
"value": {
"text_list": [
"en-GB"
]
},
"offset_field": 376,
"offset_start": 393,
"offset_end": 400
}
]
},
{
"id": 1,
"message": 0,
"parent": 0,
"kind": "html",
"encoding": "quoted-printable",
"flags": [],
"roles": [
"text_body",
"html_body"
],
"role": "html_body",
"offset_header": 485,
"offset_body": 571,
"offset_end": 846,
"headers": [
{
"name": "Content-Type",
"value": {
"content_type": {
"type": "text",
"subtype": "html",
"attributes": [
[
"charset",
"utf-8"
]
]
}
},
"offset_field": 485,
"offset_start": 498,
"offset_end": 526
},
{
"name": "Content-Transfer-Encoding",
"value": {
"text": "quoted-printable"
},
"offset_field": 526,
"offset_start": 552,
"offset_end": 570
}
],
"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": 2,
"message": 0,
"parent": 0,
"kind": "inline_binary",
"encoding": "base64",
"flags": [],
"roles": [
"attachment",
"inline"
],
"role": "attachment",
"offset_header": 886,
"offset_body": 1087,
"offset_end": 1415,
"headers": [
{
"name": "Content-Type",
"value": {
"content_type": {
"type": "image",
"subtype": "png",
"attributes": [
[
"name",
"kigaaldcbanejcbi.png"
]
]
}
},
"offset_field": 886,
"offset_start": 899,
"offset_end": 940
},
{
"name": "Content-Transfer-Encoding",
"value": {
"text": "base64"
},
"offset_field": 940,
"offset_start": 966,
"offset_end": 974
},
{
"name": "Content-ID",
"value": {
"text_list": [
"part1.8C5E6A81.D0C1B91A@example.com"
]
},
"offset_field": 974,
"offset_start": 985,
"offset_end": 1024
},
{
"name": "Content-Disposition",
"value": {
"content_type": {
"type": "inline",
"subtype": null,
"attributes": [
[
"filename",
"kigaaldcbanejcbi.png"
]
]
}
},
"offset_field": 1024,
"offset_start": 1044,
"offset_end": 1086
}
],
"binary": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAASdEVYdFNvZnR3YXJlAEdyZWVuc2hvdF5VCAUAAABpSURBVDhP3dA7EoAgDEXR7Ew+bgdx/018BEYyiICtb27FcCig3Z7Im6gK3ZxN/RcQkb6aK8DjtuRMzMEAiNGvlFpgtyOdEjFz14xA10wA1pg5wLRZAthtVgEm5vGtA4DhvILaO8A+AuYLy0U5xUUpL8kAAAAASUVORK5CYII=",
"decode_problems": []
}
]
}