utf7-imap
A Rust library for encoding and decoding UTF-7 string as defined by the IMAP standard in RFC 3501 (#5.1.3).
Idea is based on Python mutf7 library.
Usage
Add this to your Cargo.toml:
[]
= "0.3.0"
Encode
Encode UTF-7 IMAP mailbox name
https://datatracker.ietf.org/doc/html/rfc3501#section-5.1.3
use encode_utf7_imap;
let test_string = Stringfrom;
assert_eq!;
Decode
Decode UTF-7 IMAP mailbox name https://datatracker.ietf.org/doc/html/rfc3501#section-5.1.3
use decode_utf7_imap;
let test_string = Stringfrom;
assert_eq!;
License
utf7-imap is MIT licensed.