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

241.12. messagelib-26.08.2

KDE PIM message libraries: viewer, composer, message list, templates and the MIME tree parser

26.08.2-1 · GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-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 (GPL-2.0-or-later WITH LicenseRef-Qt-Commercial-exception-1.0) AND BSD-3-Clause AND BSL-1.0 AND MIT AND CC0-1.0 · 5.3 SBU · 11.1 MiB, 622 files · 43_toolkits, 224 of 344 · ports/core/mail/messagelib

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

MessageLib is the message half of KMail, as seven libraries other PIM programs share: MimeTreeParser takes a message apart into its MIME tree, decrypting and verifying signed and encrypted parts through GpgME; MessageViewer renders it in a Qt WebEngine view with header themes, scam detection and plugins; WebEngineViewer is that view’s base and the Safe Browsing lookup; MessageComposer builds, signs, encrypts and sends a new message; MessageList is the threaded message list; MessageCore holds the settings and helpers the others share; and TemplateParser expands reply and forward templates. kmail, mailcommon, kdepim-addons and Merkuro’s mail view link it.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtwebengine, openssl, gpgmepp, qgpgme, gnupg, kcoreaddons, kcodecs, ki18n, knewstuff, karchive, kcompletion, kconfig, kcontacts, kiconthemes, kitemviews, kjobwidgets, kio, kservice, sonnet, ktextwidgets, kwidgetsaddons, kxmlgui, syntax-highlighting, kguiaddons, knotifications, kcolorscheme, ktexttemplate, kcalendarcore, kmime, kmbox, libkleo, akonadi, akonadi-mime, akonadi-contacts, akonadi-search, grantleetheme, libgravatar, kidentitymanagement, kmailtransport, pimcommon, kpimtextedit, libkdepim, ktextaddons.

Required by (9): akonadi-calendar, akonadi-import-wizard, akonadiconsole, akregator, grantlee-editor, kdepim-addons, kmail, mailcommon, merkuro.

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

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

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_Inotify=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6TextEditTextToSpeech=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libKPim6MessageComposer.so, libKPim6MessageCore.so, libKPim6MessageList.so, libKPim6MessageViewer.so, libKPim6MimeTreeParser.so, libKPim6TemplateParser.so, libKPim6WebEngineViewer.so.

Directories: /usr/include/KPim6/MessageComposer, /usr/include/KPim6/MessageCore, /usr/include/KPim6/MessageList, /usr/include/KPim6/MessageViewer, /usr/include/KPim6/MimeTreeParser, /usr/include/KPim6/TemplateParser, /usr/include/KPim6/WebEngineViewer, /usr/lib/cmake/KPim6MessageComposer, /usr/lib/cmake/KPim6MessageCore, /usr/lib/cmake/KPim6MessageList, /usr/lib/cmake/KPim6MessageViewer, /usr/lib/cmake/KPim6MimeTreeParser, /usr/lib/cmake/KPim6TemplateParser, /usr/lib/cmake/KPim6WebEngineViewer, /usr/share/libmessageviewer, /usr/share/licenses/messagelib, /usr/share/messagelist, /usr/share/messageviewer/defaultthemes, /usr/share/org.kde.syntax-highlighting/syntax.

The viewer requires Qt WebEngine Widgets from qt6-qtwebengine. Signed and encrypted mail goes through gpgmepp and qgpgme, 2.0 or newer, and libkleo’s key widgets, with gnupg’s gpg and gpgsm doing the work at run time. The viewer’s DKIM verification checks the signing key with openssl, which the configure requires.

On Linux the configure requires KPim6AkonadiSearch from akonadi-search unless FORCE_DISABLE_AKONADI_SEARCH is set, which this recipe leaves off: the message list’s quick search reads the index through it.

Every KPim library it finds must be at least PIM 6.8.2, the version of Gear 26.08.2: akonadi, akonadi-mime, akonadi-contacts, grantleetheme, libgravatar, kidentitymanagement, libkleo, kmailtransport, kmbox, pimcommon, kpimtextedit and libkdepim. The PIM ports therefore move together.

The viewer can load remote content in HTML mail, look links up with Google Safe Browsing and verify DKIM signatures over DNS; all three (htmlLoadExternal, CheckPhishingUrl, EnabledDkim) default to off, so nothing is fetched until the user turns them on in KMail’s settings.