diff options
author | 0xd34df00d <[email protected]> | 2020-08-08 18:46:19 +0000 |
---|---|---|
committer | 0xd34df00d <[email protected]> | 2020-08-08 18:46:19 +0000 |
commit | c137bc55af7629cd00467c59ab31a2024860cf45 (patch) | |
tree | 5e4ce4db5071323d47aa4dd31b3274c302bb66af | |
parent | Text body part can also have a name (diff) | |
download | vmime-c137bc55af7629cd00467c59ab31a2024860cf45.tar.gz vmime-c137bc55af7629cd00467c59ab31a2024860cf45.zip |
Try obtaining content disposition for all body parts types
-rw-r--r-- | src/vmime/net/imap/IMAPMessagePart.cpp | 10 |
1 files 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); } } |