From f88c80b1297eb48bdc5f3fcc2b5e3ff4090d6ac0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 23 Sep 2025 09:58:29 +0200 Subject: [PATCH] aerc: Add accounts configuration template Uses private from-email and email aliases fields. --- .dotter/global.toml | 1 + .dotter/sample.toml | 3 +++ office/.config/aerc/accounts.conf | 21 +++++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 office/.config/aerc/accounts.conf diff --git a/.dotter/global.toml b/.dotter/global.toml index edcb95d..5fde0a6 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -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" } diff --git a/.dotter/sample.toml b/.dotter/sample.toml index 20b3e15..b834dd2 100644 --- a/.dotter/sample.toml +++ b/.dotter/sample.toml @@ -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 = "" diff --git a/office/.config/aerc/accounts.conf b/office/.config/aerc/accounts.conf new file mode 100644 index 0000000..1e68aa4 --- /dev/null +++ b/office/.config/aerc/accounts.conf @@ -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 "}} +{{#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