Skip to main content

Configuration

Configuration is stored in ~/.config/matcha/config.json.

Example Configuration

Passwords have been removed since v0.19.0

{
"accounts": [
{
"id": "unique-id-1",
"name": "John Doe",
"email": "john@gmail.com",
"service_provider": "gmail",
"fetch_email": "john@gmail.com",
"send_as_email": "john@alias.example",
"smime_cert": "/home/jane/.certs/jane_smime_cert.pem",
"smime_key": "/home/jane/.certs/jane_smime_private.pem"
},
{
"id": "unique-id-2",
"name": "Work Email",
"email": "john@company.com",
"service_provider": "custom",
"fetch_email": "john@company.com",
"imap_server": "imap.company.com",
"imap_port": 993,
"smtp_server": "smtp.company.com",
"smtp_port": 587,
"smtp_username": "jdoe"
}
],
"mailing_lists": [
{
"name": "Team",
"addresses": ["alice@example.com", "bob@example.com"]
}
],
"theme": "Matcha",
"enable_split_pane": true,
"enable_detailed_dates": true,
"date_format": "DD/MM/YYYY HH:MM",
"disable_images": true,
"hide_tips": true,
"disable_spellcheck": false,
"disable_spell_suggestions": false,
"body_cache_threshold_mb": 100,
"undo_delay_seconds": 5
}

send_as_email is optional. When set, Matcha uses it for the outgoing From header while continuing to authenticate with the account's login address.

smtp_username is optional. When set, Matcha uses it instead of email when authenticating with the SMTP server. Set this when your mail provider uses different credentials for IMAP and SMTP — for example, a full email address for IMAP but a short username for SMTP. The corresponding SMTP password is stored separately in the OS keyring under the key <email>:smtp-password; if no SMTP-specific password is stored, the main account password is used as a fallback.

enable_split_pane enables a side-by-side view where the email list and the selected email are shown on the same screen.

enable_detailed_dates shows absolute inbox dates using your configured date_format instead of relative labels like "2 hours ago".

disable_spellcheck (default false) turns off the composer spellcheck entirely — no underline highlights, no dictionary download, no popup. Toggle via Settings → General → Spellcheck.

disable_spell_suggestions (default false) keeps the misspelled-word underline but suppresses the inline suggestion popup. Useful if you want a quiet check without an autocomplete-style overlay. Toggle via Settings → General → Spell Suggestions.

body_cache_threshold_mb sets the maximum size (in megabytes) for the local email body cache. When this limit is reached, least recently accessed cached emails are evicted across all folders to make room for new ones. Defaults to 100 MB if not specified.

undo_delay_seconds sets the delay (in seconds) before a sent email is actually delivered, giving you a chance to cancel mistakes. During this window, a countdown shows "Sending in Xs... (u to undo)". Pressing the configured undo key cancels the send. After the delay expires, the email is transmitted and cannot be undone. Set to 0 to send immediately with no undo window. Defaults to 5 seconds if not specified.

Data Locations

Configuration and persistent data are stored in ~/.config/matcha/:

FileDescription
config.jsonAccount settings, preferences
keybinds.jsonCustom keyboard shortcuts (see Keybinds)
signatures/Email signatures
pgp/PGP keys
plugins/Installed Lua plugins
themes/Custom theme JSON files
dicts/Hunspell spellcheck dictionaries (see Spellcheck)
secure.metaEncryption metadata (only when encryption is enabled)

Cache data is stored in ~/.cache/matcha/:

FileDescription
email_cache.jsonEmail metadata cache
contacts.jsonContact autocomplete data
drafts.jsonSaved email drafts
folder_cache.jsonFolder listings per account
folder_emails/Per-folder email list cache
email_bodies/Cached email body content

Cache files are automatically refreshed from the server on each app launch and manual refresh. If an email is removed from the server, its cache entry is cleaned up on the next refresh.

Encryption

All data files can optionally be encrypted with a password. See Encryption for details.

When encryption is enabled, account passwords are stored inside the encrypted config.json instead of the OS keyring.

Password Command

Instead of storing a password in the OS keyring, you can set pass_cmd on an account to have matcha fetch the password from an external command (e.g. pass, gopass, or an age script). See Password Command for details.