From 1806e0be0ef5fcb776ae115675255762c01dbacc Mon Sep 17 00:00:00 2001 From: 0xd34df00d <0xd34df00d@gmail.com> Date: Sat, 8 Aug 2020 12:50:53 -0400 Subject: [PATCH] Text body part can also have a name --- src/vmime/net/imap/IMAPMessagePart.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(