2 releases

0.1.1 Oct 3, 2019
0.1.0 Oct 3, 2019

#174 in Email

Download history 52/week @ 2024-03-11 41/week @ 2024-03-18 116/week @ 2024-03-25 81/week @ 2024-04-01 61/week @ 2024-04-08 5/week @ 2024-04-22 2/week @ 2024-04-29 4/week @ 2024-05-06 66/week @ 2024-05-13 40/week @ 2024-05-20 53/week @ 2024-05-27 50/week @ 2024-06-03 38/week @ 2024-06-10 48/week @ 2024-06-17 8/week @ 2024-06-24

148 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