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

301.6. kmail-26.08.2

KDE email client — IMAP, POP3 and local mail on Akonadi, with OpenPGP and S/MIME

26.08.2-1 · GPL-2.0-or-later AND LGPL-2.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later WITH LicenseRef-Qt-Commercial-exception-1.0 AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND LGPL-2.0-only AND GFDL-1.2-or-later AND BSD-3-Clause AND CC0-1.0 AND MIT · 4.0 SBU · 10.6 MiB, 230 files · 44_apps, 280 of 422 · ports/core/mail/kmail

Homepage: https://apps.kde.org/kmail2/

KMail is KDE’s email client. It reads and sends mail through the Akonadi accounts that kdepim-runtime serves (IMAP, POP3, Maildir, mbox, Exchange), shows messages with messagelib’s viewer on qt6-qtwebengine, signs and encrypts with OpenPGP and S/MIME through libkleo and gpgmepp, filters mail on the client and on the server (Sieve, through libksieve), and searches it with akonadi-search. It runs on its own or as a page of kontact. The port also builds KMail’s Akonadi agents (send later, archive, follow-up reminders, mail filtering, the unified mailbox and mail merge), the KTnef viewer for Outlook’s winmail.dat attachments, and kmail-refresh-settings, which resets KMail’s configuration.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtwebengine, kbookmarks, kcalendarcore, kcmutils, kcodecs, kcompletion, kconfig, kcontacts, kcoreaddons, kcrash, kdbusaddons, kdoctools, kguiaddons, ki18n, kiconthemes, kio, kitemmodels, kitemviews, kjobwidgets, kmime, knotifications, knotifyconfig, kparts, kservice, kstatusnotifieritem, kwidgetsaddons, kwindowsystem, kxmlgui, sonnet, syntax-highlighting, ktextaddons, gpgmepp, libgpg-error, qtkeychain, libkleo, akonadi, akonadi-contacts, akonadi-mime, akonadi-search, kcalutils, kidentitymanagement, kldap, kmailtransport, kontactinterface, kpimtextedit, ktnef, libgravatar, libkdepim, libksieve, mailcommon, messagelib, pimcommon, plasma-activities, gnupg, kdepim-runtime, kmail-account-wizard, akonadi-import-wizard.

Required by (1): kde-gear-pim.

Sources: kmail-26.08.2.tar.xz (7.5 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kmail'

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 CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6TextEditTextToSpeech=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KPim6PimCommonActivities=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_PlasmaActivities=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON \
	-D OPTION_ADD_AUTOGENERATETEXT=OFF \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: akonadi_archivemail_agent, akonadi_followupreminder_agent, akonadi_mailfilter_agent, akonadi_mailmerge_agent, akonadi_sendlater_agent, akonadi_unifiedmailbox_agent, kmail, kmail-refresh-settings, ktnef.

Libraries: libkmailprivate.so, libmailfilteragentprivate.so.

Directories: /usr/lib/qt6/plugins/pim6/kcms/kmail, /usr/share/doc/HTML/en/akonadi_archivemail_agent, /usr/share/doc/HTML/en/akonadi_followupreminder_agent, /usr/share/doc/HTML/en/akonadi_sendlater_agent, /usr/share/doc/HTML/en/kmail2, /usr/share/doc/HTML/en/ktnef, /usr/share/icons/breeze-dark/16x16, /usr/share/icons/breeze-dark/22x22, /usr/share/icons/breeze-dark/8x8, /usr/share/icons/hicolor/8x8/emblems, /usr/share/kmail2, /usr/share/licenses/kmail.

Four ports are in depends for run time only. KMail runs kmail-account-wizard on its first start to set up an account, and akonadi-import-wizard on its first start when it finds another mail client’s profile, Thunderbird’s among them, and the user takes its offer to import it; it looks both up on PATH and shows an error when one is missing. kdepim-runtime holds the resource every account is. gnupg is in depends because gpgme runs gpg and gpgsm for every signature and encryption. The other programs its menus open, kaddressbook, kleopatra and pimdataexporter, are not named; the kde-gear-pim and kde-gear-utilities metas install them, and a menu entry whose program is missing says so when it is chosen.

akonadi-search is REQUIRED on every Unix unless FORCE_DISABLE_AKONADI_SEARCH is set, which this recipe leaves off. qtkeychain and ktextaddons’ TextAddonsWidgets are marked TYPE REQUIRED for the feature summary, which stops the configure without them.

KMail’s composer, viewer and folder plugins (the message-viewer and editor add-ons, the Kontact summary plugins) come from kdepim-addons, which this port does not name; the kde-gear-pim meta installs it.

The main entry, org.kde.kmail2.desktop, claims x-scheme-handler/mailto, as Thunderbird’s does; the default for mailto: links is chosen in mimeapps.list, not by either entry (see Desktop entries belong to the port). The Wayland app id is org.kde.kmail2, which main.cpp sets as the desktop file name and which KAboutData keeps; the entry carries no StartupWMClass, so the task manager matches the window to it with no change. kmail_view.desktop, which opens a saved message, and org.kde.kmail-refresh-settings.desktop are NoDisplay=true.

KF_SKIP_PO_PROCESSING stops only ki18n_install(): kdoctools_install() still builds the handbooks in every translated language, and kpkg’s language rule removes /usr/share/doc/HTML/<lang>/ from the package.