Skip to main content

chainmail cache rebuild

Drop the cached headers and bodies of every account, of the account --account names, or of one of its folders, and backfill them again from the mail server. Searches use the server for what is being rebuilt until the backfill is done. Without --account, accounts whose cache is disabled are skipped. Running it again is safe.

Usage​

chainmail cache rebuild [--account NAME [--folder FOLDER]] [flags]

Examples​

# rebuild every account whose cache is enabled
chainmail cache rebuild
chainmail cache rebuild --account work --folder INBOX

Flags​

--account string only this account (default: every account)
--folder string only this folder of --account

Global flags​

--output string output format: json or table (default $CHAINMAIL_OUTPUT, then cli.toml, then table on a terminal, json otherwise)
--socket string daemon socket (default $CHAINMAIL_SOCKET, then cli.toml, then /run/chainmail/chainmail.sock)

See also​