Re: Using MessageComposer to create invitation emails
Daniel Vrátil <[email protected]> Wed, 19 Apr 2023 20:49:56 +0200
| Newsgroups | gmane.comp.kde.devel.pim |
|---|---|
| Message-ID | <3223312.aeNJFYEL58@brokkr> |
On Wednesday, 19 April 2023 19:21:42 CEST Carl Schwan wrote: > On Wednesday, 19 April 2023 17:42:33 CEST Daniel Vrátil wrote: > > Hi all, > > Hi, > > > 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? > > We tried in the last PIM sprint to actually reduce the number of > dependencies in Kalendar which resulted in splitting some libs in a > core/widget parts and moving some stuff around. > > But Kalendar already depends on mailcommon which depends on messagelib so it > won't make it worse. Good :) I'll proceed, then. > > Regarding the encryption handling in messagecomposer I wish this could would > not depends on QWidgets as it would simplify a few other things in Kalendar > as well as make it easier to add to akonadi-calendar. I tried to do that in > the past but converting all the blocking calls from KMessageBox to be more > async is a bit complicated. Yeah, the code seems quite spaghetti-like to me :) Major refactoring of the composer is out of scope of what I'm working on right now, but I can look at that independently later on. /Dan > Cheers, > Carl > > > Cheers, > > Dan > > > > [0] https://bugs.kde.org/show_bug.cgi?id=297956
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEECr36VaTmvqmag+qXTWlVeuyxNoMFAmRAN9QACgkQTWlVeuyx NoPHnQ/9HVmOpDIqM2mcR5t5jFNY2dNnVLyDleV8bkBBgLfk6IURVDw8QWYVvuCc fNwl6mreDROFSSrxwYESJti2RQqQPDr3UxW1P/Q6mWvSs0ODX6cj1V+iO3GNP6rv RthEc0QoABmnG/l6ohCfzKBEvRtuYFOT73bnHIgr2bAf2XPxdzZvFQM/othiEWzm fyGg+0mhwxmu6bqCgsF73ng6yB4iptu6/448IT+L0lALZHyKp8AJ3Tay73Ymsmwn R+xRuSZDXgSN9XdfbCcaVtFjEvZie5G1glrjz9MWdl+Eo9JW8r60kKetUutg0dZi 9EFyK0WgsgglPX3A6M6NkwBH2i/6WD9JJMRJ4zf6QTdjusxb3b6aOxFwbtJ/MDwC OWj9lGkjO12lzD7HGxWFXzYZfF+VbMyftYaeLQH6xrt74tv5mKjcJ2C1WMR81961 oEQbMHntVGnJfBby/lYe/hKgO2Uu0cDnA+nkTY8P9b/KgyYihbACiTbacOzAW57t Kf9xV0Am+e7UjKBub3Wc5vD3eYo8w2vKcusGjcaXxPsa6Plu7RKZX/4bPlgdyDxq MoJ+0iPqI3GQaBvs7CPf9rruwuu4Fv3GLFcDGWOjFtSDbyzf8tNLL6yRtrMToBBl IVLkS1YLkbCCqnSx+NrNeMgCkQ5lukkLGoMB5ibs3NAKUnyZVcI= =mRgm -----END PGP SIGNATURE-----