241.15. libksieve-26.08.2
KDE PIM Sieve libraries: ManageSieve client, script parser and the sieve script editor
26.08.2-1 · GPL-2.0-or-later AND GPL-2.0-only AND LGPL-2.0-or-later AND BSD-3-Clause AND MIT AND CC0-1.0 · 4.2 SBU · 2.9 MiB, 106 files · 43_toolkits, 229 of 344 · ports/core/mail/libksieve
Homepage: https://invent.kde.org/pim/libksieve
libksieve is KDE’s support for Sieve, the server-side mail filtering language (RFC 5228). It has four libraries: KPim6KSieve, the script parser; KPim6KManageSieve, a ManageSieve (RFC 5804) client that lists, uploads and activates scripts on a mail server over SASL; KPim6KSieveCore, the account and capability handling; and KPim6KSieveUi, the script editor with its syntax highlighting, the graphical rule builder and the vacation (out-of-office) dialog. KMail’s filter and vacation settings and pim-sieve-editor are built on it.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtwebengine, cyrus-sasl, ki18n, kcolorscheme, kio, kcoreaddons, kiconthemes, knewstuff, karchive, syntax-highlighting, sonnet, kmime, libkdepim, pimcommon, kidentitymanagement, kmailtransport, kimap, ktextaddons.
Required by (3): kdepim-addons, kmail, pim-sieve-editor.
Sources: libksieve-26.08.2.tar.xz (635.2 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 libksieve'
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 OPTION_ADD_AUTOGENERATETEXT=OFF \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6TextEditTextToSpeech=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_KF6DocTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D OPTION_ADD_AUTOGENERATETEXT=OFF— No AI text plugin in the script editor. With it, upstream links ktextaddons’TextAutoGenerateText, an LLM client, when it finds one; KDOS builds the PIM stack without it (see ktextaddons).-D CMAKE_REQUIRE_FIND_PACKAGE_KF6TextEditTextToSpeech=ON— Requires ktextaddons’ text-to-speech library, which the editor uses to read a script aloud. Upstream looks for it quietly and drops the feature without one, so a ktextaddons built without Qt TextToSpeech would change this library with no warning.-D CMAKE_DISABLE_FIND_PACKAGE_KF6DocTools=ON— No KDocTools. The tarball has no handbook of its own; upstream finds KDocTools only to build translated handbooks underpo/, which the English-only rule would remove (see Size and language policy).-D KF_SKIP_PO_PROCESSING=ON— Builds none of the translation catalogues underpo/, for the same reason.
Libraries: libKPim6KManageSieve.so, libKPim6KSieve.so, libKPim6KSieveCore.so, libKPim6KSieveUi.so.
Directories: /usr/include/KPim6/KManageSieve, /usr/include/KPim6/KSieve, /usr/include/KPim6/KSieveCore, /usr/include/KPim6/KSieveUi, /usr/lib/cmake/KPim6KManageSieve, /usr/lib/cmake/KPim6KSieve, /usr/lib/cmake/KPim6KSieveCore, /usr/lib/cmake/KPim6KSieveUi, /usr/share/licenses/libksieve, /usr/share/sieve.
The configure requires Qt WebEngine Widgets from qt6-qtwebengine: the editor’s help view shows the Sieve reference pages in a web view. It also requires Sasl2, for ManageSieve logins, through cyrus-sasl.
Every KPim library it finds, pimcommon, libkdepim, kidentitymanagement, kmailtransport and kimap, must be at least PIM 6.8.2, the version of Gear 26.08.2, so the PIM ports move together. MIME parsing comes from KDE Frameworks’ kmime.