iSMAIL / web UI & scheduler

Point a browser at the server root (default http://127.0.0.1:8120/). The whole UI is baked into the binary — no CDN, no external assets: even the stylesheet (the vendored Tabler dashboard theme, MIT) is served from the same binary. It talks to the same HTTP API, so anything you can do here you can script.

Since v0.9 the UI is a full dashboard: a sidebar navigates six pages — Overview (stat cards: total runs, succeeded, failed/running, enabled schedules — plus the five most recent runs and the schedule summary), Ad-hoc sync, Runs (history with status badges + live transcripts), Schedules, Server log and Settings. The top bar shows the page title, a dark/light theme switch (saved in the browser) and the signed-in user. Runs refresh every 15 s without a reload, and the sidebar shows a badge while any run is in flight. The mobile layout turns the sidebar into a slide-in drawer — no JavaScript framework anywhere: the dashboard is web assembly, all Rust.

Sign in

The UI authenticates with a session cookie, never with the bearer token — a browser cannot attach an Authorization header to a page. Start the server with --authuser <u> --authpassfile <f> to get a username/password form, or with the OIDC flags to get a sign in with the identity provider button (Keycloak, Authentik, Entra). With neither configured the page opens immediately: that is the open API, so keep the bind address on 127.0.0.1 or put the port behind a reverse proxy. A token-only server (--apitoken without a UI login) has nothing to sign in with and says so on the page.

Ad-hoc sync page

The form covers the everyday flags: host/user/password for both sides, ports, ssl1/ssl2, the gmail1/gmail2 presets, dry, syncinternaldates, nofoldersizes and delete1. The extra options box takes any further CLI options as a JSON object ({"exclude":["Trash"],"regextrans2":["s/^INBOX\\./X/"]}) — it is merged into the request, so the form is a shortcut, not a cage.

Press Start run and the UI jumps straight to the Runs page with the new run's transcript open — it streams while the sync works, the same imapsync-style output you would get on the CLI. Scheduled runs appear in that table too (source sched:<id>), which turns the page into a live view of your nightly mail sync instead of a blind cron.

Schedules page

Add a schedule with a name, a 5-field cron spec and the options as a JSON object (identical to the POST /api/sync body — the form placeholder shows the shape). Each schedule row can be disabled/enabled or deleted. The scheduler lives inside the process: it ticks every 10 s, fires in the server's local time, and persists everything to the schedule file, so a restart keeps your setup.

Schedules store their options — including passwords — in the schedule file so they can replay unattended. Protect that file (permissions, backup location) and prefer revocable app passwords. Details on the security notes.

Server log & settings pages

The Server log page tails the in-memory event log (/api/logs): server boot, every run start/finish with its exit code, schedule changes and login attempts — the 300 most recent stamped lines, no file needed. Settings shows read-only server info (/api/config: version, listen address, schedule file, uptime) and which authentication modes are on. It is a deliberate security readout: an open server (no login, no token) gets a visible warning right there. Secrets never travel to the browser.

Why in-app scheduling?

Mail sync at its core is a fragile loop of credentials, flaky networks and long transcripts. Keeping the schedule next to the runs means: one deployable instead of container + crontab, every fire leaves a browsable transcript, and pausing a bad sync is a click instead of an edit-and-redeploy.