2023-02-18 20:12:47 +00:00
|
|
|
[example]
|
2023-12-12 14:24:59 +00:00
|
|
|
# The current account will be used by default for all other commands.
|
2023-02-22 12:14:21 +00:00
|
|
|
default = true
|
2023-02-18 20:12:47 +00:00
|
|
|
|
2023-12-11 17:38:00 +00:00
|
|
|
# The display-name and the email are used to build the full email
|
|
|
|
# address: "My example account" <example@localhost>
|
2023-11-25 11:37:00 +00:00
|
|
|
display-name = "My example account"
|
|
|
|
email = "example@localhost"
|
2023-02-18 20:12:47 +00:00
|
|
|
|
2023-12-11 17:38:00 +00:00
|
|
|
# The signature can be a string or a path to a file.
|
|
|
|
signature = "Regards,"
|
|
|
|
signature-delim = "-- \n"
|
2023-11-28 11:30:50 +00:00
|
|
|
|
2023-12-11 17:38:00 +00:00
|
|
|
# Enable the synchronization for this account. Running the command
|
|
|
|
# `account sync example` will synchronize all folders and all emails
|
|
|
|
# to a local Maildir at `$XDG_DATA_HOME/himalaya/example`.
|
|
|
|
sync.enable = true
|
|
|
|
|
|
|
|
# Override the default Maildir path for synchronization.
|
|
|
|
sync.dir = "/tmp/himalaya-sync-example"
|
|
|
|
|
2023-12-11 21:01:48 +00:00
|
|
|
# Define main folder aliases
|
|
|
|
folder.alias.inbox = "INBOX"
|
|
|
|
folder.alias.sent = "Sent"
|
|
|
|
folder.alias.drafts = "Drafts"
|
|
|
|
folder.alias.trash = "Trash"
|
|
|
|
|
|
|
|
# Also define custom folder aliases
|
|
|
|
folder.alias.prev-year = "Archives/2023"
|
|
|
|
|
2023-12-11 17:38:00 +00:00
|
|
|
# Default backend used for all the features like adding folders,
|
2023-11-25 11:37:00 +00:00
|
|
|
# listing envelopes or copying messages.
|
|
|
|
backend = "imap"
|
2023-02-18 20:12:47 +00:00
|
|
|
|
2023-12-11 17:38:00 +00:00
|
|
|
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 listing envelopes.
|
2023-12-19 14:38:24 +00:00
|
|
|
# envelope.list.backend = "imap"
|
2023-12-11 17:38:00 +00:00
|
|
|
|
2023-12-14 13:12:25 +00:00
|
|
|
# Send notification on receiving new envelopes
|
|
|
|
envelope.watch.received.notify.summary = "📬 New message from {sender}"
|
|
|
|
|
|
|
|
# Available placeholders: id, subject, sender, sender.name,
|
|
|
|
# sender.address, recipient, recipient.name, recipient.address.
|
|
|
|
envelope.watch.received.notify.body = "{subject}"
|
2023-12-11 17:38:00 +00:00
|
|
|
|
2023-12-14 13:12:25 +00:00
|
|
|
# Shell commands can also be executed when envelopes change
|
|
|
|
# envelope.watch.any.cmd = "mbsync -a"
|
2023-12-14 11:13:08 +00:00
|
|
|
|
2023-12-14 13:12:25 +00:00
|
|
|
# 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.
|
|
|
|
message.send.save-copy = true
|
|
|
|
|
2023-11-26 11:16:07 +00:00
|
|
|
# IMAP config
|
|
|
|
imap.host = "localhost"
|
|
|
|
imap.port = 3143
|
2023-11-25 11:37:00 +00:00
|
|
|
imap.login = "example@localhost"
|
2023-11-26 11:16:07 +00:00
|
|
|
imap.ssl = false
|
|
|
|
imap.starttls = false
|
2023-12-11 17:38:00 +00:00
|
|
|
imap.auth = "passwd" # or oauth2
|
2023-11-26 11:16:07 +00:00
|
|
|
|
2023-12-11 17:38:00 +00:00
|
|
|
# Get password from the raw string (not safe)
|
2023-12-14 21:27:33 +00:00
|
|
|
imap.passwd.raw = "password"
|
2023-12-11 17:38:00 +00:00
|
|
|
|
|
|
|
# Get password from a shell command
|
2023-12-14 21:27:33 +00:00
|
|
|
# imap.passwd.cmd = "echo password"
|
2023-12-11 17:38:00 +00:00
|
|
|
|
|
|
|
# Get password from your 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
|
|
|
|
2023-11-26 11:16:07 +00:00
|
|
|
# SMTP config
|
|
|
|
smtp.host = "localhost"
|
|
|
|
smtp.port = 3025
|
|
|
|
smtp.login = "example@localhost"
|
|
|
|
smtp.ssl = false
|
|
|
|
smtp.starttls = false
|
|
|
|
smtp.auth = "passwd"
|
2023-12-11 17:38:00 +00:00
|
|
|
smtp.passwd.raw = "password"
|
2023-12-09 08:36:26 +00:00
|
|
|
|
2023-12-11 17:38:00 +00:00
|
|
|
# PGP needs to be enabled with one of those cargo feature:
|
|
|
|
# pgp-commands, pgp-gpg or pgp-native
|
|
|
|
# pgp.backend = "gpg"
|