diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/aerc.conf | 2 | ||||
-rw-r--r-- | config/config.go | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf index 29063814..6c89f855 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -263,6 +263,8 @@ header-layout=To|From,Subject # the first field. Only the email address field is required. The second field, # if present, will be treated as the contact name. Additional fields are # ignored. +# +# This parameter can also be set per account in accounts.conf. address-book-cmd= # diff --git a/config/config.go b/config/config.go index e0c86082..ebdee5e1 100644 --- a/config/config.go +++ b/config/config.go @@ -112,6 +112,7 @@ type AccountConfig struct { SignatureCmd string EnableFoldersSort bool `ini:"enable-folders-sort"` FoldersSort []string `ini:"folders-sort" delim:","` + AddressBookCmd string `ini:"address-book-cmd"` // CheckMail CheckMail time.Duration `ini:"check-mail"` @@ -279,6 +280,8 @@ func loadAccountConfig(path string) ([]AccountConfig, error) { account.PgpAutoSign, _ = strconv.ParseBool(val) } else if key == "pgp-opportunistic-encrypt" { account.PgpOpportunisticEncrypt, _ = strconv.ParseBool(val) + } else if key == "address-book-cmd" { + account.AddressBookCmd = val } else if key != "name" { account.Params[key] = val } |