This commit is contained in:
Mauro D
2021-12-31 08:14:48 +00:00
parent 46a8db9a54
commit f7281e09cf
5 changed files with 12 additions and 3 deletions
+5
View File
@@ -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).
Generated
+1 -1
View File
@@ -68,7 +68,7 @@ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"
[[package]]
name = "mail-parser"
version = "0.4.2"
version = "0.4.3"
dependencies = [
"bincode",
"encoding_rs",
+1 -1
View File
@@ -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 <hello@stalw.art>"]
license = "Apache-2.0 OR MIT"
+2 -1
View File
@@ -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:
+3
View File
@@ -11,6 +11,9 @@
use std::io::{BufRead, BufReader, Read};
/// Parses an MBox mailbox from a `Read` stream, returning each message as a
/// `Vec<u8>`.
/// supports >From quoting as defined in the [QMail mbox specification](http://qmail.org/qmail-manual-html/man5/mbox.html).
pub struct MBoxParser<T: Read> {
reader: BufReader<T>,
found_from: bool,