Content-Type: multipart/mixed; boundary=foo

--foo
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

p=C3=A4iv=C3=A4=C3=A4

--foo
Content-Transfer-Encoding: base64
Content-Type: text/plain; charset=utf-8

ecO2dMOkIHZhYW4uCg== ignored
--foo
Content-Transfer-Encoding: base64
Content-Type: text/plain; charset=utf-8

?garbage
--foo--

---- EXPECTED STRUCTURE ----
{
  "headers": {
    "content_type": {
      "ContentType": {
        "c_type": "multipart",
        "c_subtype": "mixed",
        "attributes": {
          "boundary": "foo"
        }
      }
    }
  },
  "html_body": [
    {
      "contents": "<html><body>päivää<br/></body></html>"
    },
    {
      "contents": "<html><body>yötä vaan.<br/>�\t�</body></html>"
    }
  ],
  "text_body": [
    {
      "headers": {
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain",
            "attributes": {
              "charset": "utf-8"
            }
          }
        },
        "content_transfer_encoding": {
          "Text": "quoted-printable"
        }
      },
      "contents": "päivää\n"
    },
    {
      "headers": {
        "content_transfer_encoding": {
          "Text": "base64"
        },
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain",
            "attributes": {
              "charset": "utf-8"
            }
          }
        }
      },
      "contents": "yötä vaan.\n�\t�"
    }
  ],
  "attachments": [
    {
      "Text": {
        "headers": {
          "content_type": {
            "ContentType": {
              "c_type": "text",
              "c_subtype": "plain",
              "attributes": {
                "charset": "utf-8"
              }
            }
          },
          "content_transfer_encoding": {
            "Text": "base64"
          }
        },
        "contents": "?garbage"
      }
    }
  ]
}