From 6a1c0f60afcbc56d11ef3a2b58f04f83fc67bf3b Mon Sep 17 00:00:00 2001 From: y0ast Date: Thu, 20 Aug 2020 19:22:50 +0200 Subject: 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. --- config/config.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config/config.go') diff --git a/config/config.go b/config/config.go index 12096ba..3ae26c1 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" { -- cgit v1.2.3