The desktop client
What a release publishes for somebody who wants MailFathom's client as an application on their own machine rather than as a page a deployment serves: which platforms, in which formats, what each installer does, and what none of them does.
The client has three heads and one source tree, and a release publishes two of them. The web head is the bundle every published container image carries and a deployment serves once it is switched on — the client endpoint is that page. The desktop head is the same bundle wrapped in a Tauri shell, built per platform and attached to a release as an installer. This page is about the second one. Nothing here is a local command; building and testing the client is how a developer builds any of them.
What is published, and for what
| Platform | Format | Built on |
|---|---|---|
| Linux, x86-64 | .deb |
ubuntu-24.04 |
| Linux, x86-64 | .rpm |
ubuntu-24.04 |
| Windows, x86-64 | NSIS -setup.exe |
windows-latest |
frontend/src-tauri/tauri.conf.json is where those three formats are chosen, and the build publishes what that
configuration produces rather than a list of its own. A nightly is the one exception, and it publishes no .rpm:
RPM's Version tag admits no hyphen, a nightly's version carries a prerelease identifier introduced by exactly that
character, and Windows needs the same string to parse as SemVer — so the two cannot be satisfied by one number, and
src-tauri/run-tauri.ts drops that one target rather than publishing a package whose version field is malformed. A
release, whose version is a plain x.y.z, builds all three.
Two runners rather than one, and that is the difference from every other artifact this project publishes. The
service's container image and the mfctl binaries are built for every platform on one Linux runner, because an IL
publish with a runtime identifier crosses freely. A desktop head does not: it links against the target platform's
WebView and system libraries — WebKitGTK on Linux, WebView2 on Windows — so each platform is built on its own runner,
and neither can stand in for the other. The Linux runner is pinned rather than left to follow whatever is newest,
because the packages link against its glibc and that makes the image a compatibility floor: a .deb or an .rpm built
on Ubuntu 24.04 needs glibc 2.39 or later, so a distribution released before it — Ubuntu 22.04, Debian 12 — installs
the package and cannot start the application. Build it yourself there, or use the web head, until that floor moves.
Nothing is published for macOS, and iOS is not a head this project builds at all.
Android is the third head, and nothing on this page applies to it. Under ADR 0027 the same shell builds one debug-signed APK left on the run that built it: there is no release asset, no store listing, no update channel, and no download address that outlives a run's artifact retention. It is a build somebody tries rather than a client they live in, and nothing about it is supported. Every nightly run produces one, from the same revision the image on that run was built from, and it expires with the run's own artifact retention rather than being published anywhere. What the head is, in full, is that record; how one is built is building the Android head.
What an installer does, and what it does not
- It installs the application and its own bundle, which is the client's compiled web assets and the Rust shell that
opens a window over them. MailFathom's own
LICENSEandNOTICEare installed with it, in the application's resource directory, and the notice covering everything the bundle itself carries — the five packages, the typeface, and the icon outlines — travels inside the bundle asTHIRD-PARTY-NOTICES.txt. - It brings no rendering engine on Linux. Both packages link against the WebKitGTK and GTK your distribution
ships and patches rather than carrying a copy. The
.debnameslibwebkit2gtk-4.1-0andlibgtk-3-0as dependencies, soaptinstalls them with it; the.rpmnames none, because those same libraries carry different package names on Fedora and on openSUSE and one wrong name makes a package refuse to install rather than pull something in. On an RPM distribution, installwebkit2gtk4.1— or whatever your distribution calls it — beside the package. - On Windows it will fetch one. The NSIS installer runs Microsoft's WebView2 bootstrapper when the machine has no WebView2 runtime, which needs an internet connection at install time; Windows 11 and every up-to-date Windows 10 already carry it.
- It installs per user on Windows, into
%LOCALAPPDATA%rather thanC:\Program Files, so it asks for no administrator rights. - It carries no service and no database. The desktop client is a client: it reaches a MailFathom deployment over the client surface exactly as the web head does, and it needs one to be running and reachable before it can sign in.
- It keeps the password in the machine's own credential store. Signing in once is enough: the shell hands the credential to the Credential Manager on Windows and to the session's Secret Service on Linux — the two platforms this head is published for — filed under the address of the deployment it was given for, and signing out removes it. Where the store refuses the write, the client signs in anyway and says the password was not kept, and where it refuses the removal it says so rather than reporting a sign-out that did not happen. What is stored is one value and the client keeps no copy of it beside that. A machine offering no such store — a Linux session running no keyring daemon is the usual case — is told so on the sign-in screen and asked for the password again the next time the application opens, rather than having it written somewhere less safe instead.
- Signing in with a provider happens in your own browser too, and never in this window: a sign-in screen painted
by the application is one nobody can tell from a counterfeit. Where the deployment publishes an authorization server,
the shell listens on
http://127.0.0.1:8766/— this machine only, for as long as one sign-in is in flight and at most five minutes — opens the provider's own page in the browser the desktop uses, and serves that address one page saying the tab can be closed. That loopback address is what an operator registers at the authorization server for this head; what a sign-in screen is offered is the rest of it. A second window already signing in finds the port taken and says so instead of opening a browser whose answer would arrive somewhere else, and what comes back is kept in the same credential store the password goes to. Giving up on the sign-in — pointing the client at another deployment, or leaving the screen — gives the port back at once rather than holding it for the rest of that wait. - A link in a message opens in your own browser, not in the application's window. The shell asks the desktop for
http,https, andmailtoaddresses and for nothing else, which is the whole of what the window may ask the opener for; a window that navigated to a sender's page would have replaced the client with it. - It tells you when something arrives and the window is not in front of you, through the operating system's own notification rather than through anything of its own. What it says is how many arrived and of what kind — 2 new messages, 1 calendar reminder — and never a sender, a subject, a fragment of a body, an attachment name, or an address: a notification lands in the action centre and on the lock screen, which is storage MailFathom cannot retain, redact, or erase, so the substance stays inside the application. Nothing is raised while the window has focus, the client having already said it on the screen. Clicking one brings the window back in front of whatever was covering it, minimised or not, and opens the notification centre on it — which is the same panel the bell in the client opens, so dismissing the notification instead loses nothing: what arrived is in the centre either way. Whether this machine raises them at all is a switch in Settings → Application, kept on this machine rather than carried between them — a notification is one operating system's, so wanting them on a laptop and not on a shared machine is two answers rather than a change of mind. It is on until something says otherwise, and an operating system that refuses permission turns it off here rather than being asked again.
- It never updates itself. No update channel exists and the shell links no updater, so a new version is a new download from a release page.
- It is not signed. No bundle published here carries an Authenticode signature or a Linux package signature, so Windows warns about an unknown publisher and a package manager reports the package as unsigned.
Pointing the client at a deployment
The deployment has to allow this client's origin first, and a deployment serving only its own page does not. This
head renders in a webview, which enforces CORS exactly as a browser does against the origin the shell served the bundle
from — tauri://localhost on Linux, http://tauri.localhost on Windows — so the deployment's
ClientEndpoint:Cors:AllowedOrigins names that origin, or answers nothing this client can read. It looks like a
deployment that is down rather than one that refused: the sign-in screen reports that the deployment did not answer,
before a password has been typed, and nothing reaches the deployment's logs. The origin a downloaded head
sends is the operator's half of it.
The web head is served by its deployment and needs to be told nothing. The desktop head is served by nobody, so it asks for an address on the sign-in screen — and where somebody hands this application to other people, they can state that address once instead, so nobody is asked for it at all. Two settings do that, and both are read at start.
| Setting | What it states |
|---|---|
| The service address | Where the deployment's client surface is: a host, optionally a port, optionally a scheme. Without a scheme it is read as https. |
| The clear-text permission | Whether this client may connect over http, which sends the password unencrypted. Written true or false, in any case; nothing else is read as either. |
Each is stated in any of three places. Later in this list wins, so a wrapper script may override a machine's environment and a packaged shortcut may override both:
A configuration file,
client.confbeside the application's own configuration, in the directory this platform gives it:Platform Path Linux ~/.config/io.github.fathomise.mailfathom/client.confWindows %APPDATA%\io.github.fathomise.mailfathom\client.confkey = valuelines,#for a comment, and nothing else. A key it does not know is skipped, and a file larger than 64 KiB is not read at all.service-address = mail.example.com:8443 permit-clear-text = falseThe environment, as
MAILFATHOM_SERVICE_ADDRESSandMAILFATHOM_PERMIT_CLEAR_TEXT.The command line, as
--service-address=mail.example.com:8443and--permit-clear-text=false.--permit-clear-textalone grants the permission. A later argument wins over an earlier one.
Each setting is resolved on its own, so the address may come from a shortcut and the permission from the file. A value that is empty or only whitespace states nothing and falls through to the place under it, which is what a templated installer emits for a setting nobody set. Whitespace around a value is trimmed.
Beneath all three sit the two things the client resolves without being told: the address somebody typed on this machine and chose to keep, and — for the web head — the origin that served the page. Anything configured wins over both, so a client that was pointed somewhere by whoever installed it cannot be pointed elsewhere by an earlier run, and removing the setting hands the machine back to what it had. Nothing configured is ever written to the device's own store; it is read at every start and kept nowhere.
A configured address is not editable and offers no alternative. The sign-in screen draws it in the field, locked and announced as such, and the Advanced disclosure — where somebody would otherwise change the address or permit an unsecured connection — is not rendered at all. The permission that came with the address still governs what the client will connect to; where one was configured, the screen states it rather than offering it.
Configuration that does not resolve stops the client with the reason on the screen, rather than being ignored or quietly corrected. Four things are refused:
- an address that is not one — a path, a query, or something that is not a host;
- an
httpaddress with no permission stated beside it; - a permission granted beside an address that names
https, because one of the two is a mistake and this client cannot know which; - a permission written as anything but
trueorfalse—yes,1, andonare refused rather than guessed at.
The last two are refused rather than reconciled for one reason: correcting either would mean this client deciding on somebody's behalf whether their password crosses a network in the clear.
None of this reaches the web head, which has no shell to read an argument, an environment, or a file. What that head
gets instead is the origin it was served from, and — for a development run — the address an orchestration puts in
VITE_MAILFATHOM_SERVICE_ADDRESS at build time, which sits beneath everything above.
Verifying a download
One checksum file covers every bundle a release publishes, named mailfathom-client-<version>.sha256, and it is taken
over exactly the bytes the release page carries — nothing rewrites a bundle between the build and the release. Because
nothing is signed, that file is the whole of what verifies a download:
sha256sum --check --ignore-missing mailfathom-client-0.8.0.sha256
Run it from the directory you downloaded into, with the checksum file beside whichever bundles you took.
Why no AppImage
Tauri can bundle a Linux application as an AppImage, and this project deliberately does not publish one. An AppImage
works by packaging the host's own GTK and WebKitGTK shared objects into the artifact, several of which are
LGPL-2.1-or-later — so publishing one would mean redistributing those libraries under conditions this project would
then owe an operator a source offer for. A .deb and an .rpm depend on the distribution's copies instead and carry
none of it, which is why they are the two Linux formats published.
THIRD_PARTY_LICENSES.md records that
reading against the crate closure the shell links.
Where it is built, and what a failure costs
build-desktop-client.yml
is the only thing that builds these bundles. It is workflow_call only, and two channels call it:
release.yml, which attaches the
result to the release, and
nightly.yml, which leaves it on
the run — a nightly is not a release and has nothing to attach to, so whoever tries a nightly image takes the client
from the run that produced it.
It gates nothing on either channel. A release whose desktop build failed is still a release whose image, chart, and schema artifact are correct, and withholding those because an installer did not build would help nobody; the failure is a red job beside a published release. That is the same posture the command binaries are published under. What the build does wait for is verification: both channels build it only from a commit whose tests, and on a release the integration suite, have already passed.
Neither verification script builds a desktop head. A bundle takes a Rust toolchain, a platform's development packages, and minutes of compilation, none of which a change to a screen should wait on, so no gate on a developer's machine asks for one and the bundle is built where a bundle is actually wanted.
A pull request does build the head, and drives it. Drive the desktop head, the third job of
.github/workflows/build-test-frontend.yml, builds the shell in debug without bundles and drives the WebView it renders
in over the WebDriver protocol, which is what pnpm test:desktop is. What it costs is the toolchain and a debug
compilation on a runner rather than on the machine the change is being written on, and what it buys is the one class of
break no browser suite can see: an instant placed against a zone the WebView reported differently, and a first run
opening in a language the platform stated and nothing else reads.
frontend/tests/AGENTS.md § The
desktop suite is what that job may assert. So the pull-request answer about the client is its linter, type check, unit
suites, browser suite, and that — and a deb, an rpm, or an installer is still nobody's pull-request concern.
The version a bundle carries
<VersionPrefix> in Version.props is the only application version number in this repository, and a desktop bundle
gets it the way every other artifact does. The channel resolves the commit and the version once, hands both to the
build, and the build merges that number into the Tauri configuration — so the file names, the installer, and the
version the installed application reports are one number that no part of the build resolved for itself. A nightly's
bundles therefore carry that channel's full identifier rather than the release number the tree happens to declare.