Skip to main content

name_param

Function name_param 

Source
fn name_param(
    params: &Option<Vec<(Cow<'_, str>, Cow<'_, str>)>>,
    key: &str,
) -> Option<String>
Expand description

A name parameter (filename, name), decoded: RFC 2231’s key* (a charset and percent-encoding, possibly in numbered pieces), else the plain one (RFC 2047’s encoded words read as mail-parser reads a subject).