summary refs log tree commit diff stats
path: root/config/config.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-15 19:41:21 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-15 19:41:21 -0400
commitb0bf09b98fc038c1bc9921d568c06260b7448a15 (patch)
treeacad72b3ec224d95c551a11ba35cf4e8522641e1 /config/config.go
parent52b318127fe7ec001ca824947193b2cb7b0ebda6 (diff)
downloadaerc-b0bf09b98fc038c1bc9921d568c06260b7448a15.tar.gz
Copy sent emails to the Sent folder
Or rather, to a user-specified folder
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index 8926fcd..736acbf 100644
--- a/config/config.go
+++ b/config/config.go
@@ -29,6 +29,7 @@ const (
 )
 
 type AccountConfig struct {
+	CopyTo   string
 	Default  string
 	From     string
 	Name     string
@@ -118,6 +119,8 @@ func loadAccountConfig(path string) ([]AccountConfig, error) {
 				account.Outgoing = val
 			} else if key == "from" {
 				account.From = val
+			} else if key == "copy-to" {
+				account.CopyTo = val
 			} else if key != "name" {
 				account.Params[key] = val
 			}