2 releases

0.1.1 Oct 3, 2019
0.1.0 Oct 3, 2019

#203 in Email

Download history 38/week @ 2024-07-29 13/week @ 2024-08-05 46/week @ 2024-09-09 1/week @ 2024-09-16 24/week @ 2024-09-23 24/week @ 2024-09-30 8/week @ 2024-10-07 53/week @ 2024-10-14 48/week @ 2024-10-21 31/week @ 2024-10-28 135/week @ 2024-11-04

268 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