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.
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), "Отправленные"); } ```
utf7-imap is MIT licensed.