Function deltachat::mimeparser::get_attachment_filename

source ·
fn get_attachment_filename(
    context: &Context,
    mail: &ParsedMail<'_>,
) -> Result<Option<String>>
Expand description

Tries to get attachment filename.

If filename is explicitly specified in Content-Disposition, it is returned. If Content-Disposition is “attachment” but filename is not specified, filename is guessed. If Content-Disposition cannot be parsed, returns an error.