aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authory0ast <joost@joo.st>2020-08-20 19:22:50 +0200
committerReto Brunner <reto@labrat.space>2020-08-20 21:54:31 +0200
commit6a1c0f60afcbc56d11ef3a2b58f04f83fc67bf3b (patch)
tree5daa961ae9d44d6f57da530e621a57ad0345fbe4 /config
parent2a186cfd713e5ba5ae649f6794b58f1bd02393fc (diff)
downloadaerc-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.go3
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" {