mu-message-file/-part: small fixes

Handle is_new in all cases.

Use starts_with where applicable (C++20)

Update unit-tests
This commit is contained in:
Dirk-Jan C. Binnema
2026-07-23 12:03:10 +03:00
committed by Seth Ladygo
parent 51d5ab3163
commit a9a57d0511
3 changed files with 31 additions and 21 deletions

View File

@ -34,6 +34,8 @@ MessagePart::MessagePart(const MessagePart& other):
MessagePart(*other.mime_obj)
{}
MessagePart::MessagePart(MessagePart&& other) noexcept = default;
MessagePart::~MessagePart() = default;
const MimeObject&
@ -212,8 +214,7 @@ MessagePart::looks_like_attachment() const noexcept
return true;
}
// otherwise, rely on the disposition
return is_attachment();
return false;
}