From: Nathaniel Borenstein <nsb@bellcore.com>
To: Ned Freed <ned@innosoft.com>
Date: Sun, 21 Mar 1993 23:56:48 -0800 (PST)
Subject: Sample message
MIME-Version: 1.0
Content-type: multipart/mixed; boundary="simple boundary"

This is the preamble.  It is to be ignored, though it
is a handy place for composition agents to include an
explanatory note to non-MIME conformant readers.

--simple boundary

This is implicitly typed plain US-ASCII text.
It does NOT end with a linebreak.
--simple boundary
Content-type: text/plain; charset=us-ascii

This is explicitly typed plain US-ASCII text.
It DOES end with a linebreak.

--simple boundary--

This is the epilogue.  It is also to be ignored.

---- EXPECTED STRUCTURE ----{
  "html_body": [
    1,
    2
  ],
  "text_body": [
    1,
    2
  ],
  "attachments": [],
  "parts": [
    {
      "headers_rfc": {
        "subject": {
          "Text": "Sample message"
        },
        "from": {
          "Address": {
            "name": "Nathaniel Borenstein",
            "address": "nsb@bellcore.com"
          }
        },
        "to": {
          "Address": {
            "name": "Ned Freed",
            "address": "ned@innosoft.com"
          }
        },
        "date": {
          "DateTime": {
            "year": 1993,
            "month": 3,
            "day": 21,
            "hour": 23,
            "minute": 56,
            "second": 48,
            "tz_before_gmt": true,
            "tz_hour": 8,
            "tz_minute": 0
          }
        },
        "mime_version": {
          "Text": "1.0"
        },
        "content_type": {
          "ContentType": {
            "c_type": "multipart",
            "c_subtype": "mixed",
            "attributes": {
              "boundary": "simple boundary"
            }
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "from"
          },
          {
            "start": 5,
            "end": 46
          }
        ],
        [
          {
            "Rfc": "to"
          },
          {
            "start": 49,
            "end": 79
          }
        ],
        [
          {
            "Rfc": "date"
          },
          {
            "start": 84,
            "end": 123
          }
        ],
        [
          {
            "Rfc": "subject"
          },
          {
            "start": 131,
            "end": 147
          }
        ],
        [
          {
            "Rfc": "mime_version"
          },
          {
            "start": 160,
            "end": 165
          }
        ],
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 178,
            "end": 223
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Multipart": [
          1,
          2
        ]
      },
      "offset_header": 0,
      "offset_body": 224,
      "offset_end": 640
    },
    {
      "headers_rfc": {
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain",
            "attributes": null
          }
        }
      },
      "headers_raw": [],
      "is_encoding_problem": false,
      "body": {
        "Text": "This is implicitly typed plain US-ASCII text.\nIt does NOT end with a linebreak."
      },
      "offset_header": 400,
      "offset_body": 401,
      "offset_end": 481
    },
    {
      "headers_rfc": {
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain",
            "attributes": {
              "charset": "us-ascii"
            }
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 512,
            "end": 542
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Text": "This is explicitly typed plain US-ASCII text.\nIt DOES end with a linebreak.\n"
      },
      "offset_header": 499,
      "offset_body": 543,
      "offset_end": 620
    }
  ]
}