Content-Type: multipart/mixed; boundary="1"

--1
Content-Type: multipart/mixed; boundary="2"

--2
Content-Type: message/rfc822

Content-Type: text/plain

1
--2
Content-Type: message/rfc822

Content-Type: text/plain

22
--1
Content-Type: message/rfc822

Content-Type: text/plain

333

---- EXPECTED STRUCTURE ----{
  "headers_rfc": {
    "content_type": {
      "ContentType": {
        "c_type": "multipart",
        "c_subtype": "mixed",
        "attributes": {
          "boundary": "1"
        }
      }
    }
  },
  "html_body": [],
  "text_body": [],
  "attachments": [
    1,
    2
  ],
  "parts": [
    {
      "Multipart": {
        "headers_rfc": {
          "content_type": {
            "ContentType": {
              "c_type": "multipart",
              "c_subtype": "mixed",
              "attributes": {
                "boundary": "2"
              }
            }
          }
        }
      }
    },
    {
      "Message": {
        "headers_rfc": {
          "content_type": {
            "ContentType": {
              "c_type": "message",
              "c_subtype": "rfc822",
              "attributes": null
            }
          }
        },
        "is_encoding_problem": false,
        "body": {
          "headers_rfc": {},
          "html_body": [
            0
          ],
          "text_body": [
            0
          ],
          "attachments": [],
          "parts": [
            {
              "Text": {
                "headers_rfc": {
                  "content_type": {
                    "ContentType": {
                      "c_type": "text",
                      "c_subtype": "plain",
                      "attributes": null
                    }
                  }
                },
                "is_encoding_problem": false,
                "body": "1"
              }
            }
          ],
          "structure": {
            "Part": 0
          },
          "offset_header": 128,
          "offset_body": 154,
          "offset_end": 160
        }
      }
    },
    {
      "Message": {
        "headers_rfc": {
          "content_type": {
            "ContentType": {
              "c_type": "message",
              "c_subtype": "rfc822",
              "attributes": null
            }
          }
        },
        "is_encoding_problem": false,
        "body": {
          "headers_rfc": {},
          "html_body": [],
          "text_body": [],
          "attachments": [
            0
          ],
          "parts": [
            {
              "Text": {
                "headers_rfc": {
                  "content_type": {
                    "ContentType": {
                      "c_type": "text",
                      "c_subtype": "plain",
                      "attributes": null
                    }
                  }
                },
                "is_encoding_problem": true,
                "body": "22\n--1\nContent-Type: message/rfc822\n\nContent-Type: text/plain\n\n333\n"
              }
            }
          ],
          "structure": {
            "Part": 0
          },
          "offset_header": 190,
          "offset_body": 216,
          "offset_end": 283
        }
      }
    }
  ],
  "structure": {
    "MultiPart": [
      0,
      [
        {
          "Part": 1
        },
        {
          "Part": 2
        }
      ]
    ]
  },
  "offset_header": 0,
  "offset_body": 45,
  "offset_end": 283
}