KMime API review
Volker Krause
vkrause at kde.org
Thu Feb 5 16:57:28 GMT 2026
On Mittwoch, 4. Februar 2026 16:31:26 Mitteleuropäische Normalzeit Sune
Vuorela wrote:
> On 2025-09-15, Albert Astals Cid <aacid at kde.org> wrote:
> > As requested during Akademy.
>
> I have been toying a bit with the new API, and so far I at least have a
> couple of questions:
>
> Content/Message:
>
> template <typename T> T *header(CreatePolicy create = Create);
>
> Who owns the header if it is just created? This might just be a
> documentation issue
> (and similar for other headers)
https://invent.kde.org/pim/kmime/-/merge_requests/201 clarifies the
documentation.
> We both have
> parent/child ownership explicit Content(Content *parent = nullptr);
> and Content in unique_ptr's.
Removing the parent argument from the ctor is already in progress, waiting on
MRs in messagelib to land which remove the last uses of that.
Regards,
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20260205/24262bad/attachment.sig>
More information about the kde-pim
mailing list