Lightweight email and calendar client
  • Rust 52.8%
  • TypeScript 40.2%
  • CSS 5.9%
  • Python 0.8%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kamil Marut b266e80929
All checks were successful
Verify and release / verify (push) Successful in 3m32s
Verify and release / build (push) Successful in 5m43s
chore: update version to 0.9.1
2026-11-28 00:05:54 +01:00
.forgejo refactor(ts-rs): ts-rs types generation 2026-10-24 22:46:49 +02:00
.githooks chore: set up Git pre-push hook 2026-11-27 17:11:37 +01:00
src fix(calendar): fix position of the calendar's toolbar 2026-11-28 00:04:53 +01:00
src-tauri chore: update version to 0.9.1 2026-11-28 00:05:54 +01:00
tests feat(calendar): improve the UI of the event detail edit 2026-11-27 23:30:45 +01:00
.gitignore Establish layered Rust/Tauri tests and gated releases (#4) 2026-10-17 07:31:25 +02:00
AGENTS.md feat(email): add snooze functionality 2026-11-02 17:21:54 +01:00
biome.json refactor(ts-rs): ts-rs types generation 2026-10-24 22:46:49 +02:00
bump.sh chore: Add version bump script 2026-10-14 13:51:51 +02:00
bun.lock feat(os): use Ambassador as a mailto: link handler 2026-10-22 10:40:14 +02:00
index.html chore(lint): Add Biome as linter/formatter 2026-10-14 13:27:10 +02:00
package.json refactor(ts-rs): ts-rs types generation 2026-10-24 22:46:49 +02:00
PKGBUILD chore: update version to 0.9.1 2026-11-28 00:05:54 +01:00
playwright.config.ts Establish layered Rust/Tauri tests and gated releases (#4) 2026-10-17 07:31:25 +02:00
PRIVACY.md feat(calendar): add an integration with Google Calendar 2026-10-24 21:08:37 +02:00
README.md feat(settings): export/import settings 2026-11-09 08:29:42 +01:00
TERMS.md feat(calendar): add an integration with Google Calendar 2026-10-24 21:08:37 +02:00
TESTING.md refactor(ts-rs): ts-rs types generation 2026-10-24 22:46:49 +02:00
tsconfig.json chore(lint): Add Biome as linter/formatter 2026-10-14 13:27:10 +02:00
tsconfig.tests.json Establish layered Rust/Tauri tests and gated releases (#4) 2026-10-17 07:31:25 +02:00
vite.config.ts chore(lint): Add Biome as linter/formatter 2026-10-14 13:27:10 +02:00

Ambassador

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.