diff options
author | y0ast <joost@joo.st> | 2020-08-20 19:22:50 +0200 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-08-20 21:54:31 +0200 |
commit | 6a1c0f60afcbc56d11ef3a2b58f04f83fc67bf3b (patch) | |
tree | 5daa961ae9d44d6f57da530e621a57ad0345fbe4 /config | |
parent | 2a186cfd713e5ba5ae649f6794b58f1bd02393fc (diff) | |
download | aerc-6a1c0f60afcbc56d11ef3a2b58f04f83fc67bf3b.tar.gz |
Add account alias configuration and correctly set From field
We infer the correct From using the To: and Cc: field of the email that
we reply to.
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index 12096baf..3ae26c12 100644 --- a/config/config.go +++ b/config/config.go @@ -75,6 +75,7 @@ type AccountConfig struct { Default string Postpone string From string + Aliases string Name string Source string SourceCredCmd string @@ -202,6 +203,8 @@ func loadAccountConfig(path string) ([]AccountConfig, error) { account.OutgoingCredCmd = val } else if key == "from" { account.From = val + } else if key == "aliases" { + account.Aliases = val } else if key == "copy-to" { account.CopyTo = val } else if key == "archive" { |