- Rust 52.8%
- TypeScript 40.2%
- CSS 5.9%
- Python 0.8%
- Shell 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo | ||
| .githooks | ||
| src | ||
| src-tauri | ||
| tests | ||
| .gitignore | ||
| AGENTS.md | ||
| biome.json | ||
| bump.sh | ||
| bun.lock | ||
| index.html | ||
| package.json | ||
| PKGBUILD | ||
| playwright.config.ts | ||
| PRIVACY.md | ||
| README.md | ||
| TERMS.md | ||
| TESTING.md | ||
| tsconfig.json | ||
| tsconfig.tests.json | ||
| vite.config.ts | ||
Ambassador
A desktop email client built with Tauri 2: Rust backend (IMAP, SMTP, SQLite cache) and a vanilla TypeScript UI.
- Unified inbox across multiple IMAP accounts, plus each account's own folders
- Local SQLite cache: mail stays readable offline, and full-text search (FTS5) is instant
- Rich-text composer with inline images, attachments, reply/reply-all/forward, per-account signatures
- HTML mail is sanitized and rendered in a script-less sandboxed frame; remote images are blocked until you allow them
- Passwords are kept in the system keyring (Secret Service / Keychain / Credential Manager), never in the database
- Dark and light themes (or follow the system)
Install
Arch Linux
Install, and later update, with the same command:
curl -LO https://git.marut.network/exler/ambassador/raw/branch/main/PKGBUILD && makepkg -si
Uninstall with sudo pacman -R ambassador.
Other
Download the .AppImage (then chmod +x it) or the .deb from the Releases page.
Passwords are stored through the Secret Service, so a provider such as GNOME Keyring or KeePassXC must be running.
To open mailto: links in Ambassador, pick it as your default mail app in your desktop settings, or run xdg-mime default ambassador.desktop x-scheme-handler/mailto.
Develop
Requirements: Rust, Bun, and the Tauri Linux prerequisites (WebKitGTK 4.1).
bun install
bunx tauri dev # run the app with hot reload
bunx tauri build # release bundle
cd src-tauri && cargo test
Tests
See TESTING.md for type checks, renderer-only Playwright regressions, Rust/IPC tests, and the isolated real Tauri/WebKit desktop smoke. Pushes and pull requests run verification; version-tag releases cannot publish until it passes.
Accounts
IMAP must use implicit TLS (usually port 993). For SMTP, port 465 uses TLS and any other port uses STARTTLS. Providers with two-factor sign-in (Gmail, iCloud, Fastmail, Yahoo) need an app password.
CalDAV accounts require an HTTPS URL. Authenticated requests, redirects, and discovery links must stay on that URL’s origin (scheme, host, and port). If your provider redirects to another server, enter its final HTTPS CalDAV URL in Settings.
Google Calendar
Settings → Calendars → Sign in with Google opens Google's consent page in your browser. Events sync both ways over Google's CalDAV endpoint, on the same schedule as other calendars. The refresh token is kept in the system keyring.
Google's own labels (each calendar's named colors) show on its events, and picking one here sets it in Google Calendar. They're read-only in Ambassador: create, rename and recolor them in Google Calendar.
Builds need a Google Cloud OAuth client of type "Desktop app", passed at compile time. The project must have both the Google Calendar API and the CalDAV API enabled (APIs & Services → Library); without the CalDAV API, syncing fails with 403 Forbidden.
GOOGLE_CLIENT_ID=… GOOGLE_CLIENT_SECRET=… bunx tauri build
Desktop apps can't keep a client secret, so Google doesn't treat this one as confidential; the sign-in is protected by PKCE and a loopback redirect. Publish the OAuth consent screen (it can stay unverified for up to 100 users): while it's in "Testing", Google expires sign-ins after 7 days.
Offline changes
Every change (flags, moves, event edits, labels, replies to invitations) is applied locally first and queued in the database, so it survives going offline or restarting. The queue is sent in order as soon as the server is reachable, and a sync never overwrites a change that's still queued. If the server refuses a change for good (for example, an event was edited elsewhere since it was last synced, which is checked with its ETag), the server's version is kept and a notice says so.
Event labels
These are the labels of CalDAV calendars; Google calendars use Google's own (see above). Labels (Settings → Labels) are a name and one of 16 colors, stored only in the local database. An event's label is its iCalendar CATEGORIES on the CalDAV server, so it syncs with other clients:
- An event whose only category exactly matches a label's name shows in that label's color.
- Any other category, or more than one, shows as "External" in the calendar's own color, and is left untouched unless you pick a label or Default for that event.
- Picking a label writes just that one category (Default removes them all), for every occurrence of a repeating event. It shows at once and is sent to the server in the background, like every other change.
- Renaming, recoloring or deleting a label never changes events: they simply match the new name, or show as External.
Exporting settings
Settings → Export & import saves labels and preferences (theme, clock, event defaults) to one JSON file and loads them back. It never contains credentials or anything about accounts and their calendars, so Google calendars' labels and a chosen default sending account stay behind. Importing overwrites the preferences in the file and merges its labels into yours.
Keyboard
| Key | Action |
|---|---|
| Ctrl+K | Search |
| j / k | Next / previous message |
| c | Compose |
| r / a / f | Reply / reply all / forward |
| s | Flag |
| e | Archive |
| ! | Mark as junk / not junk |
| # or Delete | Delete |
| u | Mark unread |
| Ctrl+Enter | Send |
| Esc | Close composer / search / settings |
Release
Run ./bump.sh (patch; --minor/--major for the others), commit, then git tag vX.Y.Z && git push --tags. CI builds the .deb and .AppImage and attaches them to the release.