aerc: Add accounts configuration template

Uses private from-email and email aliases fields.
This commit is contained in:
Marty Oehme 2025-09-23 09:58:29 +02:00
parent 9dcda2a53d
commit f88c80b129
Signed by: Marty
GPG key ID: 4E535BC19C61886E
3 changed files with 25 additions and 0 deletions

View file

@ -59,6 +59,7 @@ pass = "~"
"office/.config/goimapnotify/goimapnotify.yaml" = { target = "~/.config/goimapnotify/goimapnotify.yaml", type = "template" }
"office/.config/isync/mbsyncrc" = { target = "~/.config/isync/mbsyncrc", type = "template" }
"office/.config/msmtp/config" = { target = "~/.config/msmtp/config", type = "template" }
"office/.config/aerc/accounts.conf" = { target = "~/.config/aerc/accounts.conf", type = "template" }
"office/.config/neomutt/account" = { target = "~/.config/neomutt/account", type = "template" }
"office/.config/neomutt/profile.gmail" = { target = "~/.config/neomutt/profile.gmail", type = "template" }
"office/.config/neomutt/profile.private" = { target = "~/.config/neomutt/profile.private", type = "template" }

View file

@ -23,3 +23,6 @@ mail_personal_password_cmd = ""
mail_notmuch_name = ""
mail_notmuch_primary_email = ""
mail_notmuch_other_email = ""
mail_aerc_from_email = ""
mail_aerc_aliases_email = ""

View file

@ -0,0 +1,21 @@
[Personal]
source = notmuch://~/documents/mail
maildir-store = ~/documents/mail
query-map = ~/.config/aerc/Personal.qmap
default = Inbox
folders-sort = Inbox,Drafts,Sent
check-mail-cmd = neomutt-syncmail
exclude-tags = spam
multi-file-strategy = act-dir-delete-rest
restrict-delete = true
outgoing = msmtp
from = {{with_default mail_aerc_from_email "Jane Doe <mail@jane.doe>"}}
{{#if mail_aerc_aliases_email}}
aliases = {{mail_aerc_aliases_email}}
{{/if}}
use-envelope-from = true
copy-to = Sent
pgp-opportunistic-encrypt = true
address-book-cmd = khard email --parsable --remove-first-line %s