diff --git a/CHANGELOG.md b/CHANGELOG.md index c18a41f..1365e19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +mail-parser 0.4.3 +================================ +- Mbox file parsing support (issue #11) conforming to the [QMail specification](http://qmail.org/qmail-manual-html/man5/mbox.html). +- Support for bincode serialize/deserialize. + mail-parser 0.4.2 ================================ - Added `Message::get_thread_name()` to obtain the base subject of a message as defined in [RFC 5957 - Internet Message Access Protocol - SORT and THREAD Extensions (Section 2.1)](https://datatracker.ietf.org/doc/html/rfc5256#section-2.1). diff --git a/Cargo.lock b/Cargo.lock index 6c7b8af..0709a28 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -68,7 +68,7 @@ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3" [[package]] name = "mail-parser" -version = "0.4.2" +version = "0.4.3" dependencies = [ "bincode", "encoding_rs", diff --git a/Cargo.toml b/Cargo.toml index 8d5e5b2..0a31ee0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mail-parser" description = "Fast and robust e-mail parsing library for Rust" -version = "0.4.2" +version = "0.4.3" edition = "2018" authors = [ "Stalwart Labs "] license = "Apache-2.0 OR MIT" diff --git a/README.md b/README.md index 0171d63..6d02704 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ [![build](https://github.com/stalwartlabs/mail-parser/actions/workflows/rust.yml/badge.svg)](https://github.com/stalwartlabs/mail-parser/actions/workflows/rust.yml) [![docs.rs](https://img.shields.io/docsrs/mail-parser)](https://docs.rs/mail-parser) [![crates.io](https://img.shields.io/crates/l/mail-parser)](http://www.apache.org/licenses/LICENSE-2.0) -[![Twitter Follow](https://img.shields.io/twitter/follow/stalwartlabs?style=social)](https://twitter.com/stalwartlabs) _mail-parser_ is an **e-mail parsing library** written in Rust that fully conforms to the Internet Message Format standard (_RFC 5322_), the Multipurpose Internet Mail Extensions (MIME; _RFC 2045 - 2049_) as well as many other [internet messaging RFCs](#conformed-rfcs). @@ -178,6 +177,8 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7 println!("{}", serde_yaml::to_string(&message).unwrap()); ``` +More examples available under the [examples](examples) directory. + ## Testing, Fuzzing & Benchmarking To run the testsuite: diff --git a/src/parsers/mbox.rs b/src/parsers/mbox.rs index 3315247..5c134e6 100644 --- a/src/parsers/mbox.rs +++ b/src/parsers/mbox.rs @@ -11,6 +11,9 @@ use std::io::{BufRead, BufReader, Read}; +/// Parses an MBox mailbox from a `Read` stream, returning each message as a +/// `Vec`. +/// supports >From quoting as defined in the [QMail mbox specification](http://qmail.org/qmail-manual-html/man5/mbox.html). pub struct MBoxParser { reader: BufReader, found_from: bool,