mail-parser 0.8.0

Fast and robust e-mail parsing library for Rust
Documentation
{
  "html_body": [
    1
  ],
  "text_body": [
    1
  ],
  "attachments": [
    2
  ],
  "parts": [
    {
      "headers": [
        {
          "name": {
            "Rfc": "content_type"
          },
          "value": {
            "ContentType": {
              "c_type": "multipart",
              "c_subtype": "mixed",
              "attributes": [
                [
                  "boundary",
                  "a"
                ]
              ]
            }
          },
          "offset_field": 0,
          "offset_start": 13,
          "offset_end": 45
        }
      ],
      "is_encoding_problem": false,
      "body": {
        "Multipart": [
          1,
          2
        ]
      },
      "offset_header": 0,
      "offset_body": 47,
      "offset_end": 168
    },
    {
      "headers": [
        {
          "name": {
            "Rfc": "content_type"
          },
          "value": {
            "ContentType": {
              "c_type": "multipart",
              "c_subtype": "mixed",
              "attributes": [
                [
                  "boundary",
                  "ab"
                ]
              ]
            }
          },
          "offset_field": 52,
          "offset_start": 65,
          "offset_end": 98
        },
        {
          "name": {
            "Rfc": "mime_version"
          },
          "value": {
            "Text": "1.0"
          },
          "offset_field": 98,
          "offset_start": 111,
          "offset_end": 117
        },
        {
          "name": {
            "Rfc": "content_type"
          },
          "value": {
            "ContentType": {
              "c_type": "text",
              "c_subtype": "plain",
              "attributes": null
            }
          },
          "offset_field": 123,
          "offset_start": 136,
          "offset_end": 149
        }
      ],
      "is_encoding_problem": false,
      "body": {
        "Text": ""
      },
      "offset_header": 52,
      "offset_body": 151,
      "offset_end": 151
    },
    {
      "headers": [],
      "is_encoding_problem": true,
      "body": {
        "Text": ""
      },
      "offset_header": 154,
      "offset_body": 168,
      "offset_end": 168
    }
  ]
}