2 releases

✓ Uses Rust 2018 edition

0.1.1 Oct 3, 2019
0.1.0 Oct 3, 2019

#7 in #mail

Download history 22/week @ 2019-10-31 11/week @ 2019-11-07 22/week @ 2019-11-14 12/week @ 2019-11-21 6/week @ 2019-11-28 17/week @ 2019-12-05 17/week @ 2019-12-12 32/week @ 2019-12-19 2/week @ 2019-12-26 5/week @ 2020-01-02 6/week @ 2020-01-09 9/week @ 2020-01-16 12/week @ 2020-01-23 23/week @ 2020-01-30 22/week @ 2020-02-06

70 downloads per month

MIT license

7KB
151 lines

RFC 2047 Encoder

Build Status Crates.io Crates.io

Offers an encoder for RFC 2047 encoded words.

use rfc2047::rfc2047_encode;

#[test]
fn test_encode_rfc2047() {
    assert_eq!(
        "Foo  =?utf-8?q?a=C3=A4b?= =?utf-8?q?_=C3=A4?=  bar",
        rfc2047_encode("Foo  aäb ä  bar"),
    );
}

Words are encoded or not encoded as a whole. Only quoted-printable encoding is used.

No runtime deps