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

241.2. notmuch-0.40

Mail indexer with tag-based search

0.40-2 · GPL-3.0-or-later · 1.3 SBU · 1.4 MiB, 84 files · 43_toolkits, 203 of 344 · ports/core/mail/notmuch

Homepage: https://notmuchmail.org/

Why it is in KDOS. The comment above it in script/phases/43_toolkits/packages.d/mail.txt:

notmuch does not fetch, send or store mail: it INDEXES the Maildir isync put there. That split is what lets aerc, mutt and a shell script see the same tags, and it rides the xapian the kiwix and recoll stacks already need.

Depends on: xapian-core, gmime, gpgme, gnupg, talloc, sfsexp, zlib, pkgconf, bash, python3, doxygen, python3-sphinx, texinfo, bash-completion, valgrind, python3-cffi, python3-pip, python3-setuptools, git.

Required by (1): aerc.

Sources: notmuch-0.40.tar.xz (796.4 KiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

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

build.sh:

_sphinx=$(python3 -c 'import sys, sysconfig; print(sysconfig.get_path("purelib", vars={"base": sys.argv[1]}))' /usr/lib/python3-sphinx)
PYTHONPATH=$_sphinx ./configure --prefix=/usr --libdir=/usr/lib \
	--with-docs \
	--with-api-docs \
	--with-bash-completion \
	--with-zsh-completion \
	--with-retry-lock \
	--without-emacs \
	--without-desktop \
	--without-ruby \
	--without-rpath
make
make DESTDIR=$PKG install
install -m755 notmuch-git "$PKG/usr/bin/notmuch-git"
ln -s notmuch-git "$PKG/usr/bin/nmbug"
(
	cd bindings/python-cffi
	pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root="$PKG" --prefix=/usr .
)
test -n "$(find "$PKG"/usr/lib/python3*/site-packages/notmuch2 -maxdepth 1 -name '_capi*.so')"
compgen -G "$PKG/usr/share/man/man1/notmuch.1*" > /dev/null

Programs: nmbug, notmuch, notmuch-git.

Libraries: libnotmuch.so.

Directories: /usr/lib/python3.14/site-packages/notmuch2, /usr/lib/python3.14/site-packages/notmuch2-0.40.dist-info, /usr/share/licenses/notmuch.