Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

241.17. mailcommon-26.08.2

KDE PIM mail library: folder tree, mail filters and filter manager, and shared Akonadi mail utilities

26.08.2-1 · GPL-2.0-or-later AND GPL-2.0-only AND LGPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND (LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND BSD-3-Clause AND MIT AND CC0-1.0 · 3.2 SBU · 3.3 MiB, 129 files · 43_toolkits, 231 of 344 · ports/core/mail/mailcommon

Homepage: https://invent.kde.org/pim/mailcommon

MailCommon is the mail layer KMail and Merkuro’s mail view share above Akonadi: the folder tree and its collection settings, favourite folders, expiry, the mail filters with their filter manager, filter actions and import from other clients’ filter files, the search pattern editor, and folder and message utilities. kmail, Merkuro, the import wizard and the mbox importer link it.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtmultimedia, gpgmepp, qgpgme, gnupg, karchive, kcompletion, kconfig, ki18n, kiconthemes, kitemmodels, kitemviews, kio, kwidgetsaddons, kxmlgui, kdbusaddons, syntax-highlighting, kguiaddons, kcodecs, kcolorscheme, kmime, akonadi, akonadi-mime, akonadi-contacts, libkdepim, mailimporter, kmailtransport, messagelib, pimcommon, kidentitymanagement, ktextaddons, plasma-activities.

Required by (6): akonadi-import-wizard, kdepim-addons, kmail, mbox-importer, merkuro, pim-data-exporter.

Sources: mailcommon-26.08.2.tar.xz (827.7 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install mailcommon'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-D BUILD_DESIGNERPLUGIN=OFF \
	-D OPTION_USE_PLASMA_ACTIVITIES=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KPim6PimCommonActivities=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_PlasmaActivities=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libKPim6MailCommon.so.

Directories: /usr/include/KPim6/MailCommon, /usr/lib/cmake/KPim6MailCommon, /usr/share/licenses/mailcommon.

The filter actions that encrypt and decrypt use GpgME’s C++ and Qt bindings, gpgmepp and qgpgme, 2.0 or newer, which the configure requires; they run gnupg’s gpg at run time. The “play a sound” action uses Qt Multimedia from qt6-qtmultimedia, also required.

Every KPim library it finds, akonadi, akonadi-mime, akonadi-contacts, libkdepim, mailimporter, kmailtransport, messagelib, pimcommon and kidentitymanagement, must be at least PIM 6.8.2, the version of Gear 26.08.2, so the PIM ports move together.