mail-parser 0.11.2

Fast and robust e-mail parsing library for Rust
Documentation
{
  "html_body": [
    3
  ],
  "text_body": [
    4
  ],
  "attachments": [
    5
  ],
  "parts": [
    {
      "headers": [
        {
          "name": "subject",
          "value": {
            "Text": "Hide and seek"
          },
          "offset_field": 0,
          "offset_start": 8,
          "offset_end": 23
        },
        {
          "name": "mime_version",
          "value": {
            "Text": "1.0"
          },
          "offset_field": 23,
          "offset_start": 36,
          "offset_end": 41
        },
        {
          "name": "content_type",
          "value": {
            "ContentType": {
              "c_type": "multipart",
              "c_subtype": "mixed",
              "attributes": [
                {
                  "name": "boundary",
                  "value": "1"
                }
              ]
            }
          },
          "offset_field": 41,
          "offset_start": 54,
          "offset_end": 83
        }
      ],
      "is_encoding_problem": false,
      "body": {
        "Multipart": [
          1
        ]
      },
      "offset_header": 0,
      "offset_body": 84,
      "offset_end": 585
    },
    {
      "headers": [
        {
          "name": "content_type",
          "value": {
            "ContentType": {
              "c_type": "multipart",
              "c_subtype": "signed",
              "attributes": [
                {
                  "name": "protocol",
                  "value": "signature/plain"
                },
                {
                  "name": "migalc",
                  "value": "pen+paper"
                },
                {
                  "name": "boundary",
                  "value": "2"
                }
              ]
            }
          },
          "offset_field": 88,
          "offset_start": 101,
          "offset_end": 179
        },
        {
          "name": {
            "other": "X-Signature-Type"
          },
          "value": {
            "Text": "penmanship"
          },
          "offset_field": 179,
          "offset_start": 196,
          "offset_end": 208
        }
      ],
      "is_encoding_problem": false,
      "body": {
        "Multipart": [
          2,
          5
        ]
      },
      "offset_header": 88,
      "offset_body": 209,
      "offset_end": 579
    },
    {
      "headers": [
        {
          "name": "content_type",
          "value": {
            "ContentType": {
              "c_type": "multipart",
              "c_subtype": "alternative",
              "attributes": [
                {
                  "name": "boundary",
                  "value": "3"
                }
              ]
            }
          },
          "offset_field": 213,
          "offset_start": 226,
          "offset_end": 261
        }
      ],
      "is_encoding_problem": false,
      "body": {
        "Multipart": [
          3,
          4
        ]
      },
      "offset_header": 213,
      "offset_body": 262,
      "offset_end": 497
    },
    {
      "headers": [
        {
          "name": "content_type",
          "value": {
            "ContentType": {
              "c_type": "text",
              "c_subtype": "html",
              "attributes": [
                {
                  "name": "charset",
                  "value": "us-ascii"
                }
              ]
            }
          },
          "offset_field": 266,
          "offset_start": 279,
          "offset_end": 308
        }
      ],
      "is_encoding_problem": false,
      "body": {
        "Html": "<html><head><title>Search me</title></head><body><p>Don't find me here</p></body></html>\n"
      },
      "offset_header": 266,
      "offset_body": 309,
      "offset_end": 398
    },
    {
      "headers": [
        {
          "name": "content_type",
          "value": {
            "ContentType": {
              "c_type": "text",
              "c_subtype": "plain",
              "attributes": null
            }
          },
          "offset_field": 403,
          "offset_start": 416,
          "offset_end": 428
        },
        {
          "name": "content_transfer_encoding",
          "value": {
            "Text": "binary"
          },
          "offset_field": 428,
          "offset_start": 454,
          "offset_end": 462
        }
      ],
      "is_encoding_problem": false,
      "body": {
        "Text": "Search me, and Find me here"
      },
      "offset_header": 403,
      "offset_body": 463,
      "offset_end": 490
    },
    {
      "headers": [
        {
          "name": "content_type",
          "value": {
            "ContentType": {
              "c_type": "signature",
              "c_subtype": "plain",
              "attributes": [
                {
                  "name": "charset",
                  "value": "us-ascii"
                }
              ]
            }
          },
          "offset_field": 502,
          "offset_start": 515,
          "offset_end": 550
        }
      ],
      "is_encoding_problem": false,
      "body": {
        "Binary": [
          83,
          105,
          103,
          110,
          101,
          100,
          32,
          98,
          121,
          32,
          117,
          110,
          100,
          101,
          114,
          115,
          105,
          103,
          110,
          101,
          100
        ]
      },
      "offset_header": 502,
      "offset_body": 551,
      "offset_end": 572
    }
  ]
}