mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 08:01:21 +00:00
208 lines
4.2 KiB
JSON
208 lines
4.2 KiB
JSON
{
|
|
"messages": [
|
|
{
|
|
"id": 0,
|
|
"root": 0,
|
|
"container": null,
|
|
"source": "raw",
|
|
"text_body": [
|
|
1,
|
|
2,
|
|
3
|
|
],
|
|
"html_body": [
|
|
1,
|
|
2,
|
|
3
|
|
],
|
|
"attachments": [],
|
|
"has_attachments": false
|
|
}
|
|
],
|
|
"parts": [
|
|
{
|
|
"id": 0,
|
|
"message": 0,
|
|
"parent": null,
|
|
"kind": "multipart",
|
|
"children": [
|
|
1,
|
|
2,
|
|
3
|
|
],
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [],
|
|
"role": "container",
|
|
"offset_header": 0,
|
|
"offset_body": 45,
|
|
"offset_end": 367,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "multipart",
|
|
"subtype": "mixed",
|
|
"attributes": [
|
|
[
|
|
"boundary",
|
|
"foo"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 0,
|
|
"offset_start": 13,
|
|
"offset_end": 44
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": 1,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "quoted-printable",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 51,
|
|
"offset_body": 136,
|
|
"offset_end": 158,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "quoted-printable"
|
|
},
|
|
"offset_field": 51,
|
|
"offset_start": 77,
|
|
"offset_end": 95
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"utf-8"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 95,
|
|
"offset_start": 108,
|
|
"offset_end": 135
|
|
}
|
|
],
|
|
"text": "päivää\n",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 2,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "base64",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 165,
|
|
"offset_body": 240,
|
|
"offset_end": 268,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "base64"
|
|
},
|
|
"offset_field": 165,
|
|
"offset_start": 191,
|
|
"offset_end": 199
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"utf-8"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 199,
|
|
"offset_start": 212,
|
|
"offset_end": 239
|
|
}
|
|
],
|
|
"text": "yötä vaan.\n�\t��",
|
|
"decode_problems": [
|
|
"malformed_charset"
|
|
]
|
|
},
|
|
{
|
|
"id": 3,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "base64",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 275,
|
|
"offset_body": 350,
|
|
"offset_end": 358,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "base64"
|
|
},
|
|
"offset_field": 275,
|
|
"offset_start": 301,
|
|
"offset_end": 309
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"utf-8"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 309,
|
|
"offset_start": 322,
|
|
"offset_end": 349
|
|
}
|
|
],
|
|
"text": "���j\u0007",
|
|
"decode_problems": [
|
|
"malformed_transfer_encoding",
|
|
"malformed_charset"
|
|
]
|
|
}
|
|
]
|
|
} |