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 ----
{
  "headers_rfc": {
    "subject": {
      "Text": "Formatted text mail"
    },
    "content_type": {
      "ContentType": {
        "c_type": "multipart",
        "c_subtype": "alternative",
        "attributes": {
          "boundary": "boundary42"
        }
      }
    },
    "mime_version": {
      "Text": "1.0"
    },
    "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
      }
    }
  },
  "headers_other": {},
  "headers_offsets": [
    {
      "name": {
        "Rfc": "from"
      },
      "start": 5,
      "end": 46
    },
    {
      "name": {
        "Rfc": "to"
      },
      "start": 49,
      "end": 79
    },
    {
      "name": {
        "Rfc": "date"
      },
      "start": 84,
      "end": 123
    },
    {
      "name": {
        "Rfc": "subject"
      },
      "start": 131,
      "end": 152
    },
    {
      "name": {
        "Rfc": "mime_version"
      },
      "start": 165,
      "end": 170
    },
    {
      "name": {
        "Rfc": "content_type"
      },
      "start": 183,
      "end": 227
    }
  ],
  "html_body": [
    0
  ],
  "text_body": [
    0
  ],
  "attachments": [
    1,
    2
  ],
  "parts": [
    {
      "Text": {
        "headers": {
          "content_type": {
            "ContentType": {
              "c_type": "text",
              "c_subtype": "plain",
              "attributes": {
                "charset": "us-ascii"
              }
            }
          }
        },
        "body": "... plain text version of message goes here ...\n"
      }
    },
    {
      "Text": {
        "headers": {
          "content_type": {
            "ContentType": {
              "c_type": "text",
              "c_subtype": "enriched",
              "attributes": null
            }
          }
        },
        "body": "... RFC 1896 text/enriched version of same message\n    goes here ...\n"
      }
    },
    {
      "Binary": {
        "headers": {
          "content_type": {
            "ContentType": {
              "c_type": "application",
              "c_subtype": "x-whatever",
              "attributes": null
            }
          }
        },
        "body": [
          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
        ]
      }
    }
  ],
  "structure": {
    "List": [
      {
        "Part": 0
      },
      {
        "Part": 1
      },
      {
        "Part": 2
      }
    ]
  },
  "offset_header": 0,
  "offset_body": 228,
  "offset_end": 563
}