From 6eb63399a1586f54700eb1783e066a6c26337db4 Mon Sep 17 00:00:00 2001 From: 0xd34df00d <0xd34df00d@gmail.com> Date: Sat, 8 Aug 2020 14:46:19 -0400 Subject: [PATCH] Try obtaining content disposition for all body parts types --- src/vmime/net/imap/IMAPMessagePart.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vmime/net/imap/IMAPMessagePart.cpp b/src/vmime/net/imap/IMAPMessagePart.cpp index 1cf662de..ed2c0bd2 100644 --- a/src/vmime/net/imap/IMAPMessagePart.cpp +++ b/src/vmime/net/imap/IMAPMessagePart.cpp @@ -106,12 +106,12 @@ IMAPMessagePart::IMAPMessagePart( m_size = part->body_type_basic->body_fields->body_fld_octets->value; m_name = getPartName(part->body_type_basic); + } - if (part->body_ext_1part && part->body_ext_1part->body_fld_dsp) { - auto *cdisp = part->body_ext_1part->body_fld_dsp->str(); - if (cdisp) { - m_dispType = contentDisposition(cdisp->value); - } + if (part->body_ext_1part && part->body_ext_1part->body_fld_dsp) { + auto *cdisp = part->body_ext_1part->body_fld_dsp->str(); + if (cdisp) { + m_dispType = contentDisposition(cdisp->value); } }