himalaya/config.sample.toml

213 lines
5.4 KiB
TOML
Raw Normal View History

2024-08-27 09:53:54 +00:00
################################################################################
#### Global configuration ######################################################
################################################################################
# Default display name for all accounts
#
# The display-name is used to build the full email address of an
# account: "Example" <example@localhost>
#
display-name = "Example"
# Default signature for all accounts
#
# The signature is put at the bottom of all messages. It can be a path
# or a string. Supports TOML multilines.
#
# signature = "/path/to/signature/file"
# signature = """
# Thanks you,
# Regards
# """
signature = "Regards,\n"
# Default signature delimiter for all accounts
#
# The signature delimiter delimits the end of the message body from
# the signature. Defaults to "-- \n".
#
signature-delim = "-- \n"
# Default downloads directory path for all accounts
#
# The downloads directory is mostly used for downloading
# attachments. Defaults to "/tmp".
downloads-dir = "~/downloads"
# Account listing table preset
#
# Customizes the charset used to build the table. Defaults to markdown
# table style.
#
# See <https://docs.rs/comfy-table/latest/comfy_table/presets/index.html>.
#
account.list.table.preset = "|| |-||| "
# Account listing table name column
#
# Customizes the color of the NAME column of the account listing
# table.
#
account.list.table.name-color = "green"
# Account listing table backends column
#
# Customizes the color of the BACKENDS column of the account listing
# table.
#
account.list.table.backends-color = "blue"
# Account listing table default column
#
# Customizes the color of the DEFAULT column of the account listing
# table.
#
account.list.table.default-color = "reset"
################################################################################
#### Account configuration #####################################################
################################################################################
2024-02-21 21:54:59 +00:00
[accounts.example]
2024-01-27 21:47:06 +00:00
2024-08-27 09:53:54 +00:00
# Defaultness of the account
#
# The current account will be used by default in all commands.
#
default = true
2023-02-18 20:12:47 +00:00
2024-08-27 09:53:54 +00:00
# Email of the account
#
# The email address associated to the current account.
#
2023-11-25 11:37:00 +00:00
email = "example@localhost"
2023-02-18 20:12:47 +00:00
2024-08-27 09:53:54 +00:00
# Display name
#
# The display-name and the email are used to build the full email
# address: "Example" <example@localhost>
#
display-name = "Example"
# Signature
#
# The signature is put at the bottom of all messages. It can be a path
# or a string. Supports TOML multilines.
#
# signature = "/path/to/signature/file"
# signature = """
# Thanks you,
# Regards
# """
signature = "Regards,\n"
# Signature delimiter
#
# The signature delimiter delimits the end of the message body from
# the signature. Defaults to "-- \n".
#
signature-delim = "-- \n"
2023-11-28 11:30:50 +00:00
2024-08-27 09:53:54 +00:00
# Downloads directory path
#
# The downloads directory is mostly used for downloading
# attachments. Defaults to "/tmp".
downloads-dir = "~/downloads"
2024-08-27 09:53:54 +00:00
# Default backend
#
# Backend used by default for all the features like adding folders,
# listing envelopes or copying messages.
#
# backend = "notmuch" # requires the notmuch cargo feature and the libnotmuch installed
# backend = "maildir"
backend = "imap"
2024-02-24 13:27:05 +00:00
2024-08-27 09:53:54 +00:00
# Folder aliases
#
# Defines aliases for your mailboxes. There are 4 special aliases used
# by the tool: inbox, sent, drafts and trash. Other aliases can be
# defined as well.
#
2023-12-11 21:01:48 +00:00
folder.alias.inbox = "INBOX"
folder.alias.sent = "Sent"
folder.alias.drafts = "Drafts"
folder.alias.trash = "Trash"
2024-08-27 09:53:54 +00:00
folder.alias.a23 = "Archives/2023"
# Folder listing page size
#
# Customizes the number of folders to show by page. Defaults to 10.
#
folder.list.page-size = 10
# Folder listing table preset
#
# Customizes the charset used to build the table. Defaults to markdown
# table style.
#
# See <https://docs.rs/comfy-table/latest/comfy_table/presets/index.html>.
#
folder.list.table.preset = "|| |-||| "
# Folder listing table name column
#
# Customizes the color of the NAME column of the folder listing table.
#
folder.list.table.name-color = "blue"
# Folder listing table desc column
#
# Customizes the color of the DESC column of the folder listing table.
#
folder.list.table.desc-color = "green"
# TODO: need to improve the following
# Envelope listing page size
#
# Customizes the number of envelopes to show by page. Defaults to 10.
#
envelope.list.page-size = 10
envelope.list.datetime-fmt = "%F %R%:z"
# Date are converted to the user's local timezone.
envelope.list.datetime-local-tz = true
# Override the backend used for sending messages.
message.send.backend = "smtp"
2023-12-14 11:13:08 +00:00
2023-12-20 13:55:09 +00:00
# Save a copy of sent messages to the sent folder.
2024-02-24 13:27:05 +00:00
message.send.save-copy = false
2023-12-20 13:55:09 +00:00
# IMAP config
imap.host = "localhost"
imap.port = 3143
2023-11-25 11:37:00 +00:00
imap.login = "example@localhost"
# Encryption can be either "tls" (or true), "start-tls" or "none" (or false).
imap.encryption = "none"
# Get password from a raw string (not safe)
2023-12-14 21:27:33 +00:00
imap.passwd.raw = "password"
# Get password from a shell command
2023-12-14 21:27:33 +00:00
# imap.passwd.cmd = "echo password"
# Get password from your global system keyring using secret service
# Keyring secrets can be (re)set with the command `account configure example`
# imap.passwd.keyring = "example-imap-password"
2023-11-28 11:30:50 +00:00
# SMTP config
smtp.host = "localhost"
smtp.port = 3025
smtp.login = "example@localhost"
smtp.encryption = false
smtp.passwd.raw = "password"
# PGP needs to be enabled with one of those cargo feature:
# pgp-commands, pgp-gpg or pgp-native
# pgp.backend = "gpg"