utf7-imap

Test Status Crate API

A Rust library for decoding UTF-7 string as defined by the IMAP standard in RFC 3501 (#5.1.3).

Idea is based on Python mutf7 library.

Usage

Since this library is currently experimental, only decode is supported.

Add this to your Cargo.toml:

toml [dependencies] utf7-imap = "0.1.0"

```rust use utf7imap::decodeutf7_imap;

fn main() { let teststring = String::from("&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-"); asserteq!(decodeutf7imap(test_string), "Отправленные"); } ```

License

utf7-imap is MIT licensed.