diff --git a/src/modules/imap/section.rs b/src/modules/imap/section.rs index ff95996..ba08f44 100644 --- a/src/modules/imap/section.rs +++ b/src/modules/imap/section.rs @@ -338,8 +338,8 @@ impl<'a> SectionExtractor<'a> { } /// Retrieves the file name from the content type if it exists. - fn get_file_name(disposition: &ContentType<'a>) -> Option { - disposition + fn get_file_name(ty: &ContentType<'a>) -> Option { + ty .params .as_ref()? .iter()