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
{

View File

@ -87,6 +87,14 @@ public:
*/
Option<std::string> mime_type() const noexcept;
/**
* Get the content description for this part, or Nothing
*
* @return the content description
*/
Option<std::string> content_description() const noexcept;
/**
* Get the length of the (unencoded) MIME-part.
*