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 ----{
  "html_body": [
    1,
    2
  ],
  "text_body": [
    1,
    2
  ],
  "attachments": [
    3
  ],
  "parts": [
    {
      "headers_rfc": {
        "content_type": {
          "ContentType": {
            "c_type": "multipart",
            "c_subtype": "mixed",
            "attributes": {
              "boundary": "foo"
            }
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 13,
            "end": 44
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Multipart": [
          1,
          2,
          3
        ]
      },
      "offset_header": 0,
      "offset_body": 45,
      "offset_end": 367
    },
    {
      "headers_rfc": {
        "content_transfer_encoding": {
          "Text": "quoted-printable"
        },
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain",
            "attributes": {
              "charset": "utf-8"
            }
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "content_transfer_encoding"
          },
          {
            "start": 77,
            "end": 95
          }
        ],
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 108,
            "end": 135
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Text": "päivää\n"
      },
      "offset_header": 51,
      "offset_body": 136,
      "offset_end": 159
    },
    {
      "headers_rfc": {
        "content_transfer_encoding": {
          "Text": "base64"
        },
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain",
            "attributes": {
              "charset": "utf-8"
            }
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "content_transfer_encoding"
          },
          {
            "start": 191,
            "end": 199
          }
        ],
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 212,
            "end": 239
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Text": "yötä vaan.\n�\t�"
      },
      "offset_header": 165,
      "offset_body": 240,
      "offset_end": 269
    },
    {
      "headers_rfc": {
        "content_transfer_encoding": {
          "Text": "base64"
        },
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain",
            "attributes": {
              "charset": "utf-8"
            }
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "content_transfer_encoding"
          },
          {
            "start": 301,
            "end": 309
          }
        ],
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 322,
            "end": 349
          }
        ]
      ],
      "is_encoding_problem": true,
      "body": {
        "Text": "?garbage"
      },
      "offset_header": 275,
      "offset_body": 350,
      "offset_end": 359
    }
  ]
}