mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-15 20:07:57 +08:00
109 lines
3.1 KiB
TOML
109 lines
3.1 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 = "***"
|
|
|
|
# --------------------------------
|
|
# 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 = "***"
|