Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Accounts

postbode account add asks for the details (including an extra CA file, if your server needs one), tests the login and writes config.toml. You can also edit the file by hand:

LinuxmacOS
config.toml, rules.toml~/.config/postbode/~/Library/Application Support/postbode/
Mail store and trash~/.local/state/postbode/accounts/<name>/~/Library/Application Support/postbode/accounts/<name>/
[[accounts]]
name = "work"
host = "imap.example.com"
port = 993
username = "me@example.com"
password = { keyring = true }
address = "me@example.com"
aliases = ["me@example.org", "*@shop.example.com"]
sync_interval_secs = 120
trash_retention_days = 30
notify = true
KeyDefaultMeaning
namerequiredLetters, digits, - and _. Used in --account and for the store directory.
host, portport 993IMAP over TLS. STARTTLS on port 143 is not supported yet.
usernamerequiredThe IMAP login.
passwordrequired{ keyring = true } or { command = "pass show mail/work" }.
addressthe usernameYour address, when the username is not one.
aliasesnoneOther addresses that are you. * is a wildcard over the whole address.
sync_interval_secs120Full sync interval. New INBOX mail arrives sooner through IMAP IDLE.
trash_retention_days30How long deleted mail is kept as .eml.
notifytrueDesktop notification for new INBOX mail no rule handled.
ca_filenoneAbsolute path to a PEM file with an extra trusted root certificate, for a server with a private CA.

Appearance

[ui]
check_updates = false
theme = "system"

theme is "system" (follow the OS, the default), "light" or "dark". The mail window’s theme switch writes it.

check_updates (off by default) lets the mail window ask GitHub at most once a day whether a newer release is out, and link to its release notes in the status bar. The request is a plain HTTPS request to api.github.com with the user agent postbode/<version>: it carries nothing about your accounts or mail, though GitHub sees your IP address as with any request. Postbode never updates itself; upgrade the way you installed it (brew upgrade postbode, cargo install postbode, a new AppImage). Set check_updates = true to turn the check on.

Passwords

{ keyring = true } keeps the password in the macOS Keychain or the Secret Service, under service postbode and the account name. account add stores it there.

{ command = "..." } runs the command with sh -c and uses its output, without the trailing newline. A non-zero exit is an error, and the command’s own error output shows in your terminal.

Aliases

address plus aliases define “me”. Rules use them through to_me and alias.