MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="bound"

mime header

--bound
Content-Transfer-Encoding: base64
Content-Type: text/plain

d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz
aWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk
Z2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=
--bound
Content-Type: text/plain
Content-Transfer-Encoding: base64

ZWg=
--bound--

---- EXPECTED STRUCTURE ----{
  "html_body": [
    1,
    2
  ],
  "text_body": [
    1,
    2
  ],
  "attachments": [],
  "parts": [
    {
      "headers_rfc": {
        "mime_version": {
          "Text": "1.0"
        },
        "content_type": {
          "ContentType": {
            "c_type": "multipart",
            "c_subtype": "alternative",
            "attributes": {
              "boundary": "bound"
            }
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "mime_version"
          },
          {
            "start": 13,
            "end": 19
          }
        ],
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 32,
            "end": 76
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Multipart": [
          1,
          2
        ]
      },
      "offset_header": 0,
      "offset_body": 78,
      "offset_end": 480
    },
    {
      "headers_rfc": {
        "content_transfer_encoding": {
          "Text": "base64"
        },
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain",
            "attributes": null
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "content_transfer_encoding"
          },
          {
            "start": 128,
            "end": 137
          }
        ],
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 150,
            "end": 163
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Text": "we have\ra lot \nof \u0000binary stuff in here\nb adjig sadjg jasidgjiaehga3wht8a3w8ghxjc dsgad hasdghsd gasd dsjdsoga sjdga0w3tjhawjgsertniq3n5oqerjqw2r89q23h awhrqh835r8a"
      },
      "offset_header": 102,
      "offset_body": 165,
      "offset_end": 391
    },
    {
      "headers_rfc": {
        "content_transfer_encoding": {
          "Text": "base64"
        },
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain",
            "attributes": null
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 413,
            "end": 426
          }
        ],
        [
          {
            "Rfc": "content_transfer_encoding"
          },
          {
            "start": 452,
            "end": 461
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Text": "eh"
      },
      "offset_header": 400,
      "offset_body": 463,
      "offset_end": 469
    }
  ]
}