Content-Type: multipart/mixed; boundary="1"
--1
Content-Type: multipart/mixed; boundary="2"
--2
Content-Type: text/plain
1
--2
Content-Type: text/plain
22
--1
Content-Type: text/plain
333
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
],
"html_body": [
1
],
"text_body": [
1
],
"attachments": [
2
],
"parts": [
{
"Multipart": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "2"
}
}
}
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
}
},
"body": "1"
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
}
},
"body": "22\n--1\nContent-Type: text/plain\n\n333\n"
}
}
],
"structure": {
"MultiPart": [
0,
[
{
"Part": 1
},
{
"Part": 2
}
]
]
},
"offset_header": 0,
"offset_body": 45,
"offset_end": 193
}