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": {
    "content_type": {
      "ContentType": {
        "c_type": "multipart",
        "c_subtype": "alternative",
        "attributes": {
          "boundary": "boundary42"
        }
      }
    },
    "mime_version": {
      "Text": "1.0"
    },
    "subject": {
      "Text": "Formatted text mail"
    },
    "to": {
      "Address": {
        "name": "Ned Freed",
        "address": "ned@innosoft.com"
      }
    },
    "from": {
      "Address": {
        "name": "Nathaniel Borenstein",
        "address": "nsb@bellcore.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
      }
    }
  },
  "html_body": [
    {
      "contents": "<html><body>... plain text version of message goes here ...<br/></body></html>"
    }
  ],
  "text_body": [
    {
      "headers": {
        "content_type": {
          "ContentType": {
            "c_type": "text",
            "c_subtype": "plain",
            "attributes": {
              "charset": "us-ascii"
            }
          }
        }
      },
      "contents": "... plain text version of message goes here ...\n"
    }
  ],
  "attachments": [
    {
      "Text": {
        "headers": {
          "content_type": {
            "ContentType": {
              "c_type": "text",
              "c_subtype": "enriched"
            }
          }
        },
        "contents": "... RFC 1896 text/enriched version of same message\n    goes here ...\n"
      }
    },
    {
      "Binary": {
        "headers": {
          "content_type": {
            "ContentType": {
              "c_type": "application",
              "c_subtype": "x-whatever"
            }
          }
        },
        "contents": [
          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
        ]
      }
    }
  ]
}