server/message-part: restore forwarding attachments

This commit is contained in:
Dirk-Jan C. Binnema
2022-05-05 23:45:11 +03:00
parent 62e546a4e2
commit e0d047105b
3 changed files with 29 additions and 4 deletions

View File

@ -95,6 +95,15 @@ MessagePart::mime_type() const noexcept
return Nothing;
}
Option<std::string>
MessagePart::content_description() const noexcept
{
if (!mime_object().is_part())
return Nothing;
else
return MimePart{mime_object()}.content_description();
}
size_t
MessagePart::size() const noexcept
{