mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-12-03 16:02:06 +00:00
91 lines
1.7 KiB
JSON
91 lines
1.7 KiB
JSON
{
|
|
"messages": [
|
|
{
|
|
"id": 0,
|
|
"root": 0,
|
|
"container": null,
|
|
"source": "raw",
|
|
"text_body": [
|
|
1
|
|
],
|
|
"html_body": [
|
|
1
|
|
],
|
|
"attachments": [],
|
|
"has_attachments": false
|
|
}
|
|
],
|
|
"parts": [
|
|
{
|
|
"id": 0,
|
|
"message": 0,
|
|
"parent": null,
|
|
"kind": "multipart",
|
|
"children": [
|
|
1
|
|
],
|
|
"encoding": "none",
|
|
"flags": [
|
|
"unterminated"
|
|
],
|
|
"roles": [],
|
|
"role": "container",
|
|
"offset_header": 0,
|
|
"offset_body": 45,
|
|
"offset_end": 92,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "multipart",
|
|
"subtype": "mixed",
|
|
"attributes": [
|
|
[
|
|
"boundary",
|
|
"1"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 0,
|
|
"offset_start": 13,
|
|
"offset_end": 44
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": 1,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "none",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body",
|
|
"html_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 49,
|
|
"offset_body": 75,
|
|
"offset_end": 87,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": []
|
|
}
|
|
},
|
|
"offset_field": 49,
|
|
"offset_start": 62,
|
|
"offset_end": 74
|
|
}
|
|
],
|
|
"text": "hello, world",
|
|
"decode_problems": []
|
|
}
|
|
]
|
|
} |