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

241.13. kmail-account-wizard-26.08.2

Account setup wizard for KMail — looks up the IMAP and SMTP settings for an address

26.08.2-1 · LGPL-2.0-or-later AND GPL-2.0-or-later AND GFDL-1.2-or-later AND BSD-3-Clause AND CC0-1.0 AND MIT · 1.1 SBU · 849.6 KiB, 9 files · 43_toolkits, 227 of 344 · ports/core/mail/kmail-account-wizard

Homepage: https://invent.kde.org/pim/kmail-account-wizard

The account wizard sets up a mail account for kmail from a name, an address and a password. It looks the address’s domain up in Mozilla’s ISPDB and in the domain’s own autoconfig files, offers the IMAP or POP3 and SMTP settings it finds (or takes them by hand), and then creates the Akonadi resource, the identity through kidentitymanagement and the SMTP transport through kmailtransport. KMail runs it, as accountwizard, on its first start and from its settings; kontact runs it too. Its window is a Kirigami QML interface.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kcrash, kdbusaddons, ki18n, kiconthemes, kio, kmime, kwidgetsaddons, kirigami, kirigami-addons, qqc2-desktop-style, akonadi, kidentitymanagement, kmailtransport, kdepim-runtime.

Required by (2): kde-gear-pim, kmail.

Sources: kmail-account-wizard-26.08.2.tar.xz (171.3 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 kmail-account-wizard'

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

Programs: accountwizard.

Directories: /usr/share/licenses/kmail-account-wizard.

The configure does not check the QML modules the interface imports at run time: org.kde.kirigami from kirigami, org.kde.kirigamiaddons.formcard and .components from kirigami-addons, and the org.kde.desktop style from qqc2-desktop-style, which main.cpp selects unless QT_QUICK_CONTROLS_STYLE names another. All three are in depends for run time; without kirigami or kirigami-addons the window does not load. kdepim-runtime is in depends because the akonadi_imap_resource and akonadi_pop3_resource the wizard creates are its programs.

The lookup reads config-v1.1.xml from https://autoconfig.<domain>/mail/, http://autoconfig.<domain>/mail/ and https://<domain>/.well-known/autoconfig/mail/, and the domain’s entry from Mozilla’s database at https://autoconfig.thunderbird.net/v1.1/. It runs only inside the wizard, for the address the user typed.

The configure finds qtkeychain as an optional package, but no target links it, so it is not in depends; the account password is stored by the resource the wizard creates.

The one entry upstream installs, org.kde.accountwizard.desktop, is NoDisplay=true: the wizard is reached from KMail and Kontact, not from the menu.