Try obtaining content disposition for all body parts types

This commit is contained in:
0xd34df00d 2020-08-08 14:46:19 -04:00 committed by Jan Osusky
parent 4edb9ed949
commit 6eb63399a1

View File

@ -106,6 +106,7 @@ IMAPMessagePart::IMAPMessagePart(
m_size = part->body_type_basic->body_fields->body_fld_octets->value; m_size = part->body_type_basic->body_fields->body_fld_octets->value;
m_name = getPartName(part->body_type_basic); m_name = getPartName(part->body_type_basic);
}
if (part->body_ext_1part && part->body_ext_1part->body_fld_dsp) { if (part->body_ext_1part && part->body_ext_1part->body_fld_dsp) {
auto *cdisp = part->body_ext_1part->body_fld_dsp->str(); auto *cdisp = part->body_ext_1part->body_fld_dsp->str();
@ -113,7 +114,6 @@ IMAPMessagePart::IMAPMessagePart(
m_dispType = contentDisposition(cdisp->value); m_dispType = contentDisposition(cdisp->value);
} }
} }
}
m_structure = null; m_structure = null;
} }