mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 00:01:49 +00:00
314 lines
6.4 KiB
JSON
314 lines
6.4 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": 610,
|
|
"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": 145,
|
|
"offset_end": 171,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "binary"
|
|
},
|
|
"offset_field": 67,
|
|
"offset_start": 93,
|
|
"offset_end": 101
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"utf-16le"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 101,
|
|
"offset_start": 114,
|
|
"offset_end": 144
|
|
}
|
|
],
|
|
"text": "Test message\n",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 2,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "base64",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 176,
|
|
"offset_body": 254,
|
|
"offset_end": 291,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "base64"
|
|
},
|
|
"offset_field": 176,
|
|
"offset_start": 202,
|
|
"offset_end": 210
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"utf-16be"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 210,
|
|
"offset_start": 223,
|
|
"offset_end": 253
|
|
}
|
|
],
|
|
"text": "Test message\n",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 3,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "base64",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 296,
|
|
"offset_body": 374,
|
|
"offset_end": 411,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "base64"
|
|
},
|
|
"offset_field": 296,
|
|
"offset_start": 322,
|
|
"offset_end": 330
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"utf-16le"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 330,
|
|
"offset_start": 343,
|
|
"offset_end": 373
|
|
}
|
|
],
|
|
"text": "Test message\n",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 4,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "base64",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 416,
|
|
"offset_body": 492,
|
|
"offset_end": 517,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "base64"
|
|
},
|
|
"offset_field": 416,
|
|
"offset_start": 442,
|
|
"offset_end": 450
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"EUC-JP"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 450,
|
|
"offset_start": 463,
|
|
"offset_end": 491
|
|
}
|
|
],
|
|
"text": "『世界人権宣言』",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 5,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "none",
|
|
"flags": [
|
|
"fallback_delimiter"
|
|
],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 522,
|
|
"offset_body": 597,
|
|
"offset_end": 604,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "binary"
|
|
},
|
|
"offset_field": 522,
|
|
"offset_start": 548,
|
|
"offset_end": 556
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"UTF-8"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 556,
|
|
"offset_start": 569,
|
|
"offset_end": 596
|
|
}
|
|
],
|
|
"text": "invalid",
|
|
"decode_problems": []
|
|
}
|
|
]
|
|
} |