utf7-imap 0.2.0

Mailbox names decoder (UTF-7 IMAP RFC 3501)
Documentation

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:

[dependencies]
utf7-imap = "0.1.0"
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.