mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 08:01:21 +00:00
282 lines
5.9 KiB
JSON
282 lines
5.9 KiB
JSON
{
|
|
"messages": [
|
|
{
|
|
"id": 0,
|
|
"root": 0,
|
|
"container": null,
|
|
"source": "raw",
|
|
"text_body": [
|
|
4
|
|
],
|
|
"html_body": [
|
|
3
|
|
],
|
|
"attachments": [
|
|
5
|
|
],
|
|
"has_attachments": true
|
|
}
|
|
],
|
|
"parts": [
|
|
{
|
|
"id": 0,
|
|
"message": 0,
|
|
"parent": null,
|
|
"kind": "multipart",
|
|
"children": [
|
|
1
|
|
],
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [],
|
|
"role": "container",
|
|
"offset_header": 0,
|
|
"offset_body": 84,
|
|
"offset_end": 585,
|
|
"headers": [
|
|
{
|
|
"name": "Subject",
|
|
"value": {
|
|
"text": "Hide and seek"
|
|
},
|
|
"offset_field": 0,
|
|
"offset_start": 8,
|
|
"offset_end": 23
|
|
},
|
|
{
|
|
"name": "MIME-Version",
|
|
"value": {
|
|
"text": "1.0"
|
|
},
|
|
"offset_field": 23,
|
|
"offset_start": 36,
|
|
"offset_end": 41
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "multipart",
|
|
"subtype": "mixed",
|
|
"attributes": [
|
|
[
|
|
"boundary",
|
|
"1"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 41,
|
|
"offset_start": 54,
|
|
"offset_end": 83
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": 1,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "multipart",
|
|
"children": [
|
|
2,
|
|
5
|
|
],
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [],
|
|
"role": "container",
|
|
"offset_header": 88,
|
|
"offset_body": 209,
|
|
"offset_end": 579,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "multipart",
|
|
"subtype": "signed",
|
|
"attributes": [
|
|
[
|
|
"protocol",
|
|
"signature/plain"
|
|
],
|
|
[
|
|
"migalc",
|
|
"pen+paper"
|
|
],
|
|
[
|
|
"boundary",
|
|
"2"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 88,
|
|
"offset_start": 101,
|
|
"offset_end": 179
|
|
},
|
|
{
|
|
"name": "X-Signature-Type",
|
|
"value": {
|
|
"text": "penmanship"
|
|
},
|
|
"offset_field": 179,
|
|
"offset_start": 196,
|
|
"offset_end": 208
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": 2,
|
|
"message": 0,
|
|
"parent": 1,
|
|
"kind": "multipart",
|
|
"children": [
|
|
3,
|
|
4
|
|
],
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [],
|
|
"role": "container",
|
|
"offset_header": 213,
|
|
"offset_body": 262,
|
|
"offset_end": 497,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "multipart",
|
|
"subtype": "alternative",
|
|
"attributes": [
|
|
[
|
|
"boundary",
|
|
"3"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 213,
|
|
"offset_start": 226,
|
|
"offset_end": 261
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": 3,
|
|
"message": 0,
|
|
"parent": 2,
|
|
"kind": "html",
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [
|
|
"html_body"
|
|
],
|
|
"role": "html_body",
|
|
"offset_header": 266,
|
|
"offset_body": 309,
|
|
"offset_end": 398,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "html",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"us-ascii"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 266,
|
|
"offset_start": 279,
|
|
"offset_end": 308
|
|
}
|
|
],
|
|
"text": "<html><head><title>Search me</title></head><body><p>Don't find me here</p></body></html>\n",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 4,
|
|
"message": 0,
|
|
"parent": 2,
|
|
"kind": "text",
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 403,
|
|
"offset_body": 463,
|
|
"offset_end": 490,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": []
|
|
}
|
|
},
|
|
"offset_field": 403,
|
|
"offset_start": 416,
|
|
"offset_end": 428
|
|
},
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "binary"
|
|
},
|
|
"offset_field": 428,
|
|
"offset_start": 454,
|
|
"offset_end": 462
|
|
}
|
|
],
|
|
"text": "Search me, and Find me here",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 5,
|
|
"message": 0,
|
|
"parent": 1,
|
|
"kind": "binary",
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [
|
|
"attachment"
|
|
],
|
|
"role": "attachment",
|
|
"offset_header": 502,
|
|
"offset_body": 551,
|
|
"offset_end": 572,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "signature",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"us-ascii"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 502,
|
|
"offset_start": 515,
|
|
"offset_end": 550
|
|
}
|
|
],
|
|
"binary": "U2lnbmVkIGJ5IHVuZGVyc2lnbmVk",
|
|
"decode_problems": []
|
|
}
|
|
]
|
|
} |