Skip to content

Commit f7281e0

Browse files
committed
v.0.4.3
1 parent 46a8db9 commit f7281e0

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
mail-parser 0.4.3
2+
================================
3+
- Mbox file parsing support (issue #11) conforming to the [QMail specification](http://qmail.org/qmail-manual-html/man5/mbox.html).
4+
- Support for bincode serialize/deserialize.
5+
16
mail-parser 0.4.2
27
================================
38
- 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).

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mail-parser"
33
description = "Fast and robust e-mail parsing library for Rust"
4-
version = "0.4.2"
4+
version = "0.4.3"
55
edition = "2018"
66
authors = [ "Stalwart Labs <hello@stalw.art>"]
77
license = "Apache-2.0 OR MIT"

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
[![build](https://github.com/stalwartlabs/mail-parser/actions/workflows/rust.yml/badge.svg)](https://github.com/stalwartlabs/mail-parser/actions/workflows/rust.yml)
55
[![docs.rs](https://img.shields.io/docsrs/mail-parser)](https://docs.rs/mail-parser)
66
[![crates.io](https://img.shields.io/crates/l/mail-parser)](http://www.apache.org/licenses/LICENSE-2.0)
7-
[![Twitter Follow](https://img.shields.io/twitter/follow/stalwartlabs?style=social)](https://twitter.com/stalwartlabs)
87

98
_mail-parser_ is an **e-mail parsing library** written in Rust that fully conforms to the Internet Message Format standard (_RFC 5322_), the
109
Multipurpose Internet Mail Extensions (MIME; _RFC 2045 - 2049_) as well as many other [internet messaging RFCs](#conformed-rfcs).
@@ -178,6 +177,8 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
178177
println!("{}", serde_yaml::to_string(&message).unwrap());
179178
```
180179

180+
More examples available under the [examples](examples) directory.
181+
181182
## Testing, Fuzzing & Benchmarking
182183

183184
To run the testsuite:

src/parsers/mbox.rs

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
use std::io::{BufRead, BufReader, Read};
1313

14+
/// Parses an MBox mailbox from a `Read` stream, returning each message as a
15+
/// `Vec<u8>`.
16+
/// supports >From quoting as defined in the [QMail mbox specification](http://qmail.org/qmail-manual-html/man5/mbox.html).
1417
pub struct MBoxParser<T: Read> {
1518
reader: BufReader<T>,
1619
found_from: bool,

0 commit comments

Comments
 (0)