[−][src]Crate crumble
crumble
A robust, minimal library for parsing MIME documents.
Supports UTF-8, multipart documents, and nested documents. crumble
assumes input is mostly
compliant and tries to parse input as best as possible.
Output is a minimal AST-like structure, with no filtering. This structure should be further
processed to produce useful work. See for example crinkle
.
Example
use crumble::Message; let message = load_mime_file(); // Example! The consumer must have some source of documents let message = Message::new(&message)?; // Handle errors
Structs
Header | Wraps a String tuple for more literate usage and application of traits. |
Message | Representation of a MIME document. |
Enums
Error | Internal error type. |
Section | Representation of a section of a MIME document. |