diff --git a/src/vmime/net/imap/IMAPMessagePart.cpp b/src/vmime/net/imap/IMAPMessagePart.cpp index ddb4dd47..1cf662de 100644 --- a/src/vmime/net/imap/IMAPMessagePart.cpp +++ b/src/vmime/net/imap/IMAPMessagePart.cpp @@ -87,6 +87,8 @@ IMAPMessagePart::IMAPMessagePart( m_size = part->body_type_text->body_fields->body_fld_octets->value; + m_name = getPartName(part->body_type_text); + } else if (part->body_type_msg) { m_mediaType = vmime::mediaType(