So you want to write a KMail plugin?

submited by
Style Pass
2024-11-25 16:00:09

Recently, I've been moving away from macOS to Linux, and have settled on using KDE Plasma as my desktop environment. For the most part I've been comfortable with the change, but it's always the small things that get me. For example, the Mail app built into macOS provides an "Unsubscribe" button for emails. It looks like this:

You click "Unsubscribe," and you're unsubscribed. No pleading taco emoji, no line of check boxes, just a plainly-labeled button at the top of the email.

Apparently this is also supported in some webmail clients, but I'm not interested in accessing my email that way.[1] Unfortunately, I haven't found an X11 or Wayland email client that supports this sort of functionality, so I decided to implement it myself. And anyway, I'm trying out Kontact for my mail at the moment, which supports plugins. So why not use this as an opportunity to build one?

Kontact is an all-in-one Personal Information Manager (PIM) developed for KDE. The actual "Kontact" program is more like a fancy frontend: Email is handled via KMail, KOrganizer provides to-do lists and calendars, and KAddressBook... well, these names aren't the most original. All of these programs can run independently, or be embedded into Kontact as KParts and using the KontactInterface::Plugin interface. These are called "Kontact plugins," and are not what we want to build.

Leave a Comment