[NoteUtils] Add DataBase64Encoded and ContentID fields to Attachment

Authored by poboiko on May 31 2020, 7:48 PM.

Description

[NoteUtils] Add DataBase64Encoded and ContentID fields to Attachment

KPIMTextEdit returns already base64-encoded images, so if I want to attach them,
I have to decode it, just for KMime to encode them again. Instead, just
make it possible to explicitly tell KMime that attachment is already
base64-encoded.

It is also useful to be able to set some unique identifier to an
Attachment, just to be able to refer to it from the note (contentID).
Right now we only have label field, which is not unique and is
supposed to be user-facing.

Details

Committed
poboikoMay 31 2020, 7:48 PM
Parents
R461:58e4d6eeda62: GIT_SILENT: add cmake
Branches
Unknown
Tags
Unknown