mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-18 05:47:54 +08:00
150 lines
4.5 KiB
TOML
150 lines
4.5 KiB
TOML
# --------------------------------
|
|
# Global config
|
|
# --------------------------------
|
|
|
|
# Downloads directory for all accounts, defaults to /tmp
|
|
downloads-dir = "~/downloads"
|
|
|
|
# https://docs.rs/comfy-table/latest/comfy_table/presets/index.html
|
|
table-preset = "││──╞═╪╡┆ ┬┴┌┐└┘"
|
|
|
|
# https://docs.rs/comfy-table/latest/comfy_table/enum.ContentArrangement.html#variants
|
|
table-arrangement = "dynamic"
|
|
#table-arrangement = "dynamic-full-width"
|
|
#table-arrangement = "disabled"
|
|
|
|
# --------------------------------
|
|
# Account config
|
|
# --------------------------------
|
|
|
|
[accounts.example]
|
|
|
|
# This account is used by default when `-a|--account` is omitted
|
|
default = true
|
|
|
|
# Options specific to this particular account
|
|
downloads-dir = "~/downloads"
|
|
table-preset = "││──╞═╪╡┆ ┬┴┌┐└┘"
|
|
table-arrangement = "dynamic"
|
|
|
|
# --------------------------------
|
|
# IMAP config
|
|
# --------------------------------
|
|
|
|
# IMAP URL connection in form imap[s]://host[:port]
|
|
imap.url = "imap://127.0.0.1"
|
|
|
|
# IMAP TLS provider
|
|
imap.tls.provider = "rustls"
|
|
#imap.tls.provider = "native-tls"
|
|
|
|
# IMAP crypto provider for rustls
|
|
imap.tls.rustls.crypto = "ring"
|
|
#imap.tls.rustls.crypto = "aws"
|
|
|
|
# Custom IMAP TLS certificate
|
|
#imap.tls.cert = "/path/to/custom/cert.pem"
|
|
|
|
# Enable STARTTLS (when URL scheme is imaps)
|
|
imap.starttls = false
|
|
|
|
# SASL mechanisms to try in this particular order
|
|
imap.sasl.mechanisms = ["plain", "login"]
|
|
|
|
# SASL ANONYMOUS
|
|
# https://datatracker.ietf.org/doc/html/rfc4505
|
|
imap.sasl.anonymous.message = "himalaya"
|
|
|
|
# SASL PLAIN
|
|
# https://datatracker.ietf.org/doc/html/rfc4616
|
|
imap.sasl.plain.authcid = "username"
|
|
imap.sasl.plain.passwd.command = ["mimosa", "password", "read", "example"]
|
|
#imap.sasl.plain.passwd.raw = "***"
|
|
|
|
# SASL LOGIN
|
|
# https://datatracker.ietf.org/doc/html/draft-murchison-sasl-login-00
|
|
imap.sasl.login.username = "username"
|
|
imap.sasl.login.password.command = ["mimosa", "password", "read", "example"]
|
|
#imap.sasl.login.password.raw = "***"
|
|
|
|
# --------------------------------
|
|
# JMAP config
|
|
# --------------------------------
|
|
|
|
# JMAP server address. Either a bare authority (auto-discovered via
|
|
# /.well-known/jmap) or a full session URL.
|
|
#jmap.server = "fastmail.com"
|
|
#jmap.server = "https://api.fastmail.com/jmap/session"
|
|
|
|
# JMAP TLS provider (mirrors the imap.tls block above)
|
|
#jmap.tls.provider = "rustls"
|
|
#jmap.tls.rustls.crypto = "ring"
|
|
|
|
# Authentication. Pick exactly one of header/bearer/basic.
|
|
|
|
# Raw "Authorization" header value, used verbatim
|
|
#jmap.auth.header.raw = "Bearer eyJhbGciOiJ..."
|
|
|
|
# OAuth 2.0 / API token bearer
|
|
#jmap.auth.bearer.token.command = ["mimosa", "password", "read", "fastmail-api"]
|
|
|
|
# HTTP Basic
|
|
#jmap.auth.basic.username = "user@example.com"
|
|
#jmap.auth.basic.password.command = ["mimosa", "password", "read", "fastmail"]
|
|
|
|
# Identity to send as. Required only for `himalaya messages send` over
|
|
# JMAP; can be discovered with `himalaya jmap identity get`.
|
|
#jmap.identity-id = "I0123abc"
|
|
|
|
# Drafts mailbox id used to stage outgoing messages before submission.
|
|
# Required only for `himalaya messages send` over JMAP; can be
|
|
# discovered with `himalaya jmap mailbox query --role drafts`.
|
|
#jmap.drafts-mailbox-id = "M0123abc"
|
|
|
|
# --------------------------------
|
|
# Maildir config
|
|
# --------------------------------
|
|
|
|
# Root directory containing one subdirectory per mailbox (Maildir++ layout)
|
|
#maildir.root = "~/Mail/example"
|
|
|
|
# --------------------------------
|
|
# SMTP config
|
|
# --------------------------------
|
|
|
|
# SMTP URL connection in form smtp[s]://host[:port]
|
|
smtp.url = "smtp://127.0.0.1"
|
|
|
|
# SMTP TLS provider
|
|
smtp.tls.provider = "rustls"
|
|
#smtp.tls.provider = "native-tls"
|
|
|
|
# SMTP crypto provider for rustls
|
|
smtp.tls.rustls.crypto = "ring"
|
|
#smtp.tls.rustls.crypto = "aws"
|
|
|
|
# Custom SMTP TLS certificate
|
|
#smtp.tls.cert = "/path/to/custom/cert.pem"
|
|
|
|
# Enable STARTTLS (when URL scheme is smtps)
|
|
smtp.starttls = false
|
|
|
|
# SASL mechanisms to try in this particular order
|
|
smtp.sasl.mechanisms = ["plain", "login"]
|
|
|
|
# SASL ANONYMOUS
|
|
# https://datatracker.ietf.org/doc/html/rfc4505
|
|
smtp.sasl.anonymous.message = "himalaya"
|
|
|
|
# SASL PLAIN
|
|
# https://datatracker.ietf.org/doc/html/rfc4616
|
|
smtp.sasl.plain.authcid = "username"
|
|
smtp.sasl.plain.passwd.command = ["mimosa", "password", "read", "example"]
|
|
#smtp.sasl.plain.passwd.raw = "***"
|
|
|
|
# SASL LOGIN
|
|
# https://datatracker.ietf.org/doc/html/draft-murchison-sasl-login-00
|
|
smtp.sasl.login.username = "username"
|
|
smtp.sasl.login.password.command = ["mimosa", "password", "read", "example"]
|
|
#smtp.sasl.login.password.raw = "***"
|