# utf7-imap
[](https://github.com/iam-medvedev/rust-utf7-imap/actions)
[](https://crates.io/crates/utf7-imap)
[](https://docs.rs/utf7-imap)
A Rust library for decoding [UTF-7](https://datatracker.ietf.org/doc/html/rfc2152) string as defined by the [IMAP](https://datatracker.ietf.org/doc/html/rfc3501) standard in [RFC 3501 (#5.1.3)](https://datatracker.ietf.org/doc/html/rfc3501#section-5.1.3).
Idea is based on Python [mutf7](https://github.com/cheshire-mouse/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 utf7_imap::decode_utf7_imap;
fn main() {
let test_string = String::from("&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-");
assert_eq!(decode_utf7_imap(test_string), "Отправленные");
}
```
# License
utf7-imap is [MIT licensed](LICENSE).