mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-12-03 08:01:48 +00:00
312 lines
6.5 KiB
JSON
312 lines
6.5 KiB
JSON
{
|
|
"messages": [
|
|
{
|
|
"id": 0,
|
|
"root": 0,
|
|
"container": null,
|
|
"source": "raw",
|
|
"text_body": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
],
|
|
"html_body": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
],
|
|
"attachments": [],
|
|
"has_attachments": false
|
|
}
|
|
],
|
|
"parts": [
|
|
{
|
|
"id": 0,
|
|
"message": 0,
|
|
"parent": null,
|
|
"kind": "multipart",
|
|
"children": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
],
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [],
|
|
"role": "container",
|
|
"offset_header": 0,
|
|
"offset_body": 63,
|
|
"offset_end": 654,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "multipart",
|
|
"subtype": "mixed",
|
|
"attributes": [
|
|
[
|
|
"boundary",
|
|
"1"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 0,
|
|
"offset_start": 13,
|
|
"offset_end": 44
|
|
},
|
|
{
|
|
"name": "MIME-Version",
|
|
"value": {
|
|
"text": "1.0"
|
|
},
|
|
"offset_field": 44,
|
|
"offset_start": 57,
|
|
"offset_end": 62
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": 1,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 67,
|
|
"offset_body": 148,
|
|
"offset_end": 182,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "7bit"
|
|
},
|
|
"offset_field": 67,
|
|
"offset_start": 93,
|
|
"offset_end": 104
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"us-ascii"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 104,
|
|
"offset_start": 117,
|
|
"offset_end": 147
|
|
}
|
|
],
|
|
"text": "Move black king to queen's bishop\n",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 2,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 187,
|
|
"offset_body": 265,
|
|
"offset_end": 287,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "binary"
|
|
},
|
|
"offset_field": 187,
|
|
"offset_start": 213,
|
|
"offset_end": 224
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"UTF-8"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 224,
|
|
"offset_start": 237,
|
|
"offset_end": 264
|
|
}
|
|
],
|
|
"text": "Move ♚ to ♛'s ♝\n",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 3,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 292,
|
|
"offset_body": 368,
|
|
"offset_end": 390,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "8bit"
|
|
},
|
|
"offset_field": 292,
|
|
"offset_start": 318,
|
|
"offset_end": 327
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"UTF-8"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 327,
|
|
"offset_start": 340,
|
|
"offset_end": 367
|
|
}
|
|
],
|
|
"text": "Move ♚ to ♛'s ♝\n",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 4,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "quoted-printable",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 395,
|
|
"offset_body": 494,
|
|
"offset_end": 534,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "quoted-printable"
|
|
},
|
|
"offset_field": 395,
|
|
"offset_start": 421,
|
|
"offset_end": 453
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"UTF-8"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 453,
|
|
"offset_start": 466,
|
|
"offset_end": 493
|
|
}
|
|
],
|
|
"text": "Move ♚ to ♛'s ♝\n",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 5,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "base64",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 539,
|
|
"offset_body": 614,
|
|
"offset_end": 647,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "base64"
|
|
},
|
|
"offset_field": 539,
|
|
"offset_start": 565,
|
|
"offset_end": 573
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"UTF-8"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 573,
|
|
"offset_start": 586,
|
|
"offset_end": 613
|
|
}
|
|
],
|
|
"text": "Move ♚ to ♛'s ♝\n",
|
|
"decode_problems": []
|
|
}
|
|
]
|
|
} |