decode_utf7_imap

Function decode_utf7_imap 

Source
pub fn decode_utf7_imap(text: String) -> String
Expand description

Decode UTF-7 IMAP mailbox name

https://datatracker.ietf.org/doc/html/rfc3501#section-5.1.3

§Usage:

use utf7_imap::decode_utf7_imap;

let test_string = String::from("&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-");
assert_eq!(decode_utf7_imap(test_string), "Отправленные");