mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-28 08:01:24 +00:00
330 lines
8.1 KiB
JSON
330 lines
8.1 KiB
JSON
{
|
|
"html_body": [],
|
|
"text_body": [],
|
|
"attachments": [
|
|
1,
|
|
2,
|
|
3
|
|
],
|
|
"parts": [
|
|
{
|
|
"headers": [
|
|
{
|
|
"name": {
|
|
"Rfc": "from"
|
|
},
|
|
"value": {
|
|
"Address": {
|
|
"name": "Moderator-Address",
|
|
"address": "moderator"
|
|
}
|
|
},
|
|
"offset_start": 5,
|
|
"offset_end": 36
|
|
},
|
|
{
|
|
"name": {
|
|
"Rfc": "content_type"
|
|
},
|
|
"value": {
|
|
"ContentType": {
|
|
"c_type": "multipart",
|
|
"c_subtype": "digest",
|
|
"attributes": [
|
|
[
|
|
"boundary",
|
|
"1"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_start": 49,
|
|
"offset_end": 80
|
|
}
|
|
],
|
|
"is_encoding_problem": false,
|
|
"body": {
|
|
"Multipart": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"offset_header": 0,
|
|
"offset_body": 81,
|
|
"offset_end": 570
|
|
},
|
|
{
|
|
"headers": [],
|
|
"is_encoding_problem": false,
|
|
"body": {
|
|
"Message": {
|
|
"html_body": [
|
|
0
|
|
],
|
|
"text_body": [
|
|
0
|
|
],
|
|
"attachments": [],
|
|
"parts": [
|
|
{
|
|
"headers": [
|
|
{
|
|
"name": {
|
|
"Rfc": "from"
|
|
},
|
|
"value": {
|
|
"Address": {
|
|
"name": "someone-else",
|
|
"address": "someone@else"
|
|
}
|
|
},
|
|
"offset_start": 92,
|
|
"offset_end": 121
|
|
},
|
|
{
|
|
"name": {
|
|
"Rfc": "subject"
|
|
},
|
|
"value": {
|
|
"Text": "my opinion"
|
|
},
|
|
"offset_start": 129,
|
|
"offset_end": 141
|
|
}
|
|
],
|
|
"is_encoding_problem": false,
|
|
"body": {
|
|
"Text": "This is my opinion"
|
|
},
|
|
"offset_header": 87,
|
|
"offset_body": 142,
|
|
"offset_end": 160
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"offset_header": 86,
|
|
"offset_body": 87,
|
|
"offset_end": 160
|
|
},
|
|
{
|
|
"headers": [],
|
|
"is_encoding_problem": false,
|
|
"body": {
|
|
"Message": {
|
|
"html_body": [
|
|
0
|
|
],
|
|
"text_body": [
|
|
0
|
|
],
|
|
"attachments": [],
|
|
"parts": [
|
|
{
|
|
"headers": [
|
|
{
|
|
"name": {
|
|
"Rfc": "from"
|
|
},
|
|
"value": {
|
|
"Address": {
|
|
"name": "another one",
|
|
"address": "another@one"
|
|
}
|
|
},
|
|
"offset_start": 171,
|
|
"offset_end": 198
|
|
},
|
|
{
|
|
"name": {
|
|
"Rfc": "subject"
|
|
},
|
|
"value": {
|
|
"Text": "i disagree"
|
|
},
|
|
"offset_start": 206,
|
|
"offset_end": 218
|
|
}
|
|
],
|
|
"is_encoding_problem": false,
|
|
"body": {
|
|
"Text": "Not agreeing one bit!"
|
|
},
|
|
"offset_header": 166,
|
|
"offset_body": 219,
|
|
"offset_end": 240
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"offset_header": 165,
|
|
"offset_body": 166,
|
|
"offset_end": 240
|
|
},
|
|
{
|
|
"headers": [],
|
|
"is_encoding_problem": false,
|
|
"body": {
|
|
"Message": {
|
|
"html_body": [
|
|
1
|
|
],
|
|
"text_body": [
|
|
1
|
|
],
|
|
"attachments": [
|
|
2
|
|
],
|
|
"parts": [
|
|
{
|
|
"headers": [
|
|
{
|
|
"name": {
|
|
"Rfc": "from"
|
|
},
|
|
"value": {
|
|
"Address": {
|
|
"name": "attachment",
|
|
"address": "attachment@user"
|
|
}
|
|
},
|
|
"offset_start": 251,
|
|
"offset_end": 281
|
|
},
|
|
{
|
|
"name": {
|
|
"Rfc": "subject"
|
|
},
|
|
"value": {
|
|
"Text": "funny hat"
|
|
},
|
|
"offset_start": 289,
|
|
"offset_end": 300
|
|
},
|
|
{
|
|
"name": {
|
|
"Rfc": "content_type"
|
|
},
|
|
"value": {
|
|
"ContentType": {
|
|
"c_type": "multipart",
|
|
"c_subtype": "mixed",
|
|
"attributes": [
|
|
[
|
|
"boundary",
|
|
"2"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_start": 313,
|
|
"offset_end": 342
|
|
}
|
|
],
|
|
"is_encoding_problem": false,
|
|
"body": {
|
|
"Multipart": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"offset_header": 246,
|
|
"offset_body": 343,
|
|
"offset_end": 565
|
|
},
|
|
{
|
|
"headers": [
|
|
{
|
|
"name": {
|
|
"Rfc": "content_type"
|
|
},
|
|
"value": {
|
|
"ContentType": {
|
|
"c_type": "text",
|
|
"c_subtype": "plain",
|
|
"attributes": null
|
|
}
|
|
},
|
|
"offset_start": 360,
|
|
"offset_end": 372
|
|
},
|
|
{
|
|
"name": {
|
|
"Rfc": "content_transfer_encoding"
|
|
},
|
|
"value": {
|
|
"Text": "binary"
|
|
},
|
|
"offset_start": 398,
|
|
"offset_end": 406
|
|
}
|
|
],
|
|
"is_encoding_problem": false,
|
|
"body": {
|
|
"Text": "Lovely attachment for you"
|
|
},
|
|
"offset_header": 347,
|
|
"offset_body": 407,
|
|
"offset_end": 432
|
|
},
|
|
{
|
|
"headers": [
|
|
{
|
|
"name": {
|
|
"Rfc": "content_type"
|
|
},
|
|
"value": {
|
|
"ContentType": {
|
|
"c_type": "application",
|
|
"c_subtype": "octet-stream",
|
|
"attributes": [
|
|
[
|
|
"disposition",
|
|
"attachment"
|
|
],
|
|
[
|
|
"name",
|
|
"test.txt"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_start": 450,
|
|
"offset_end": 517
|
|
},
|
|
{
|
|
"name": {
|
|
"Rfc": "content_transfer_encoding"
|
|
},
|
|
"value": {
|
|
"Text": "binary"
|
|
},
|
|
"offset_start": 543,
|
|
"offset_end": 551
|
|
}
|
|
],
|
|
"is_encoding_problem": false,
|
|
"body": {
|
|
"Binary": [
|
|
70,
|
|
111,
|
|
111,
|
|
98,
|
|
97,
|
|
114
|
|
]
|
|
},
|
|
"offset_header": 437,
|
|
"offset_body": 552,
|
|
"offset_end": 558
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"offset_header": 245,
|
|
"offset_body": 246,
|
|
"offset_end": 564
|
|
}
|
|
]
|
|
} |