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
-D BUILD_DESIGNERPLUGIN=OFF— Build no Qt Designer plugin for the widgets. Upstream builds one by default, and the configure then requires Qt’sUiPluginmodule from qt6-qttools, which this port’sdependsdoes not name.-D OPTION_USE_PLASMA_ACTIVITIES=ON— With-D CMAKE_REQUIRE_FIND_PACKAGE_KPim6PimCommonActivities=ONand-D CMAKE_REQUIRE_FIND_PACKAGE_PlasmaActivities=ON: build the activity support, which shows in the folder tree and folder pickers only the accounts assigned to the current Plasma activity. Upstream turns the option on only when pimcommon was built with its activities library and then looks for plasma-activities as optional; requiring both stops the configure instead of dropping the feature quietly.-D KF_SKIP_PO_PROCESSING=ON— Builds none of the translation catalogues underpo/, which the package-wide English-only rule would remove anyway (see Size and language policy).
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.