From: Nathaniel Borenstein <nsb@bellcore.com>
To: Ned Freed <ned@innosoft.com>
Date: Mon, 22 Mar 1993 09:41:09 -0800 (PST)
Subject: Formatted text mail
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary=boundary42

--boundary42
Content-Type: text/plain; charset=us-ascii

... plain text version of message goes here ...

--boundary42
Content-Type: text/enriched

... RFC 1896 text/enriched version of same message
    goes here ...

--boundary42
Content-Type: application/x-whatever

... fanciest version of same message goes here ...

--boundary42--

---- EXPECTED STRUCTURE ----{
  "html_body": [
    1
  ],
  "text_body": [
    1
  ],
  "attachments": [
    2,
    3
  ],
  "parts": [
    {
      "headers_rfc": {
        "subject": {
          "Text": "Formatted text mail"
        },
        "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": 22,
            "hour": 9,
            "minute": 41,
            "second": 9,
            "tz_before_gmt": true,
            "tz_hour": 8,
            "tz_minute": 0
          }
        },
        "mime_version": {
          "Text": "1.0"
        },
        "content_type": {
          "ContentType": {
            "c_type": "multipart",
            "c_subtype": "alternative",
            "attributes": {
              "boundary": "boundary42"
            }
          }
        }
      },
      "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": 152
          }
        ],
        [
          {
            "Rfc": "mime_version"
          },
          {
            "start": 165,
            "end": 170
          }
        ],
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 183,
            "end": 227
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Multipart": [
          1,
          2,
          3
        ]
      },
      "offset_header": 0,
      "offset_body": 228,
      "offset_end": 564
    },
    {
      "headers_rfc": {
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain",
            "attributes": {
              "charset": "us-ascii"
            }
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 254,
            "end": 284
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Text": "... plain text version of message goes here ...\n"
      },
      "offset_header": 241,
      "offset_body": 285,
      "offset_end": 334
    },
    {
      "headers_rfc": {
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "enriched",
            "attributes": null
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 360,
            "end": 375
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Text": "... RFC 1896 text/enriched version of same message\n    goes here ...\n"
      },
      "offset_header": 347,
      "offset_body": 376,
      "offset_end": 446
    },
    {
      "headers_rfc": {
        "content_type": {
          "ContentType": {
            "c_type": "application",
            "c_subtype": "x-whatever",
            "attributes": null
          }
        }
      },
      "headers_raw": [
        [
          {
            "Rfc": "content_type"
          },
          {
            "start": 472,
            "end": 496
          }
        ]
      ],
      "is_encoding_problem": false,
      "body": {
        "Binary": [
          46,
          46,
          46,
          32,
          102,
          97,
          110,
          99,
          105,
          101,
          115,
          116,
          32,
          118,
          101,
          114,
          115,
          105,
          111,
          110,
          32,
          111,
          102,
          32,
          115,
          97,
          109,
          101,
          32,
          109,
          101,
          115,
          115,
          97,
          103,
          101,
          32,
          103,
          111,
          101,
          115,
          32,
          104,
          101,
          114,
          101,
          32,
          46,
          46,
          46,
          10
        ]
      },
      "offset_header": 459,
      "offset_body": 497,
      "offset_end": 549
    }
  ]
}