mail-parser 0.11.2

Fast and robust e-mail parsing library for Rust
Documentation
{
  "html_body": [
    1
  ],
  "text_body": [
    1
  ],
  "attachments": [
    2
  ],
  "parts": [
    {
      "headers": [
        {
          "name": "subject",
          "value": {
            "Text": "In parts"
          },
          "offset_field": 0,
          "offset_start": 8,
          "offset_end": 18
        },
        {
          "name": "mime_version",
          "value": {
            "Text": "1.0"
          },
          "offset_field": 18,
          "offset_start": 31,
          "offset_end": 36
        },
        {
          "name": "content_type",
          "value": {
            "ContentType": {
              "c_type": "multipart",
              "c_subtype": "mixed",
              "attributes": [
                {
                  "name": "boundary",
                  "value": "1"
                }
              ]
            }
          },
          "offset_field": 36,
          "offset_start": 49,
          "offset_end": 78
        }
      ],
      "is_encoding_problem": false,
      "body": {
        "Multipart": [
          1,
          2
        ]
      },
      "offset_header": 0,
      "offset_body": 79,
      "offset_end": 522
    },
    {
      "headers": [
        {
          "name": "content_type",
          "value": {
            "ContentType": {
              "c_type": "text",
              "c_subtype": "plain",
              "attributes": null
            }
          },
          "offset_field": 83,
          "offset_start": 96,
          "offset_end": 108
        },
        {
          "name": "content_transfer_encoding",
          "value": {
            "Text": "binary"
          },
          "offset_field": 108,
          "offset_start": 134,
          "offset_end": 142
        }
      ],
      "is_encoding_problem": false,
      "body": {
        "Text": "Hi, this is the fancy thing I was talking about!"
      },
      "offset_header": 83,
      "offset_body": 143,
      "offset_end": 191
    },
    {
      "headers": [
        {
          "name": "content_type",
          "value": {
            "ContentType": {
              "c_type": "message",
              "c_subtype": "partial",
              "attributes": [
                {
                  "name": "number",
                  "value": "1"
                },
                {
                  "name": "total",
                  "value": "5"
                },
                {
                  "name": "id",
                  "value": "heks68ewe@example.org"
                }
              ]
            }
          },
          "offset_field": 196,
          "offset_start": 209,
          "offset_end": 273
        }
      ],
      "is_encoding_problem": false,
      "body": {
        "Binary": [
          88,
          45,
          87,
          101,
          105,
          114,
          100,
          45,
          72,
          101,
          97,
          100,
          101,
          114,
          45,
          49,
          58,
          32,
          66,
          97,
          114,
          10,
          88,
          45,
          87,
          101,
          105,
          114,
          100,
          45,
          72,
          101,
          97,
          100,
          101,
          114,
          45,
          50,
          58,
          32,
          72,
          101,
          108,
          108,
          111,
          10,
          77,
          101,
          115,
          115,
          97,
          103,
          101,
          45,
          73,
          68,
          58,
          32,
          60,
          99,
          54,
          99,
          99,
          101,
          101,
          98,
          99,
          45,
          49,
          100,
          99,
          102,
          45,
          49,
          49,
          101,
          98,
          45,
          98,
          101,
          56,
          99,
          45,
          102,
          55,
          99,
          97,
          49,
          51,
          50,
          99,
          98,
          102,
          101,
          97,
          64,
          101,
          120,
          97,
          109,
          112,
          108,
          101,
          46,
          111,
          114,
          103,
          62,
          10,
          67,
          111,
          110,
          116,
          101,
          110,
          116,
          45,
          84,
          121,
          112,
          101,
          58,
          32,
          116,
          101,
          120,
          116,
          47,
          112,
          108,
          97,
          105,
          110,
          59,
          32,
          99,
          104,
          97,
          114,
          115,
          101,
          116,
          61,
          34,
          117,
          115,
          45,
          97,
          115,
          99,
          105,
          105,
          34,
          10,
          67,
          111,
          110,
          116,
          101,
          110,
          116,
          45,
          84,
          114,
          97,
          110,
          115,
          102,
          101,
          114,
          45,
          69,
          110,
          99,
          111,
          100,
          105,
          110,
          103,
          58,
          32,
          98,
          97,
          115,
          101,
          54,
          52,
          10,
          10,
          100,
          71,
          104,
          112,
          99,
          121,
          66,
          112,
          99,
          121,
          66,
          48,
          97,
          71,
          85,
          103,
          90,
          109,
          108,
          121,
          99,
          51,
          81,
          103,
          99,
          71,
          70,
          121,
          100,
          67,
          66,
          118,
          90,
          105,
          66,
          48,
          97,
          71,
          85,
          103,
          98,
          87,
          86,
          122,
          99,
          50,
          70,
          110,
          90,
          81,
          111,
          61
        ]
      },
      "offset_header": 196,
      "offset_body": 274,
      "offset_end": 515
    }
  ]
}