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

mime header

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

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

ZWg=
--bound
Content-Type: text/plain

hello world

--bound--

---- EXPECTED STRUCTURE ----
{
  "headers": {
    "content_type": {
      "ContentType": {
        "c_type": "multipart",
        "c_subtype": "alternative",
        "attributes": {
          "boundary": "bound"
        }
      }
    },
    "mime_version": {
      "Text": "1.0"
    }
  },
  "html_body": [
    {
      "contents": "<html><body>d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz<br/>aWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk<br/>Z2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=</body></html>"
    },
    {
      "contents": "<html><body>ZWg=</body></html>"
    },
    {
      "contents": "<html><body>hello world<br/></body></html>"
    }
  ],
  "text_body": [
    {
      "headers": {
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain"
          }
        },
        "content_transfer_encoding": {
          "Text": "binary"
        }
      },
      "contents": "d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz\r\naWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk\r\nZ2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=\r"
    },
    {
      "headers": {
        "content_transfer_encoding": {
          "Text": "binary"
        },
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain"
          }
        }
      },
      "contents": "ZWg="
    },
    {
      "headers": {
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain"
          }
        }
      },
      "contents": "hello world\r\n\r"
    }
  ]
}