Using MessageComposer to create invitation emails

Daniel Vrátil <[email protected]> Wed, 19 Apr 2023 17:42:33 +0200
Newsgroups gmane.comp.kde.devel.pim
Message-ID <[email protected]>
Hi all,

I'm looking at  bug #297956 [0] - invitation emails from KOrganizer do not honor signing/encryption preferences.

Currently iTip messages are built in MailClient in akonadi-calendar repo, which is a fairly simplistic and straightforward piece of code.

After a brief look at how signing/encryption is implemented in KMail it's obvious that creating signed/encrypted messages requires non-trivial amount of logic and code. 

Luckily most of this code and logic lives in  MessageComposer library inside messagelib. It makes a lot of sense to me to reuse this code inside akonadi-calendar to generate signed/encrypted iTip messages with behavior and UI consistent with KMail. However it requires making akonadi-calendar to depend on messagelib, which has non-trivial dependency chain.

What do you folks think about this? Do you think it's OK to introduce this dependency? Or would a simplified sign/encrypt implementation directly in akonadi-calendar suffice?

Cheers,
Dan

[0] https://bugs.kde.org/show_bug.cgi?id=297956