diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-12 23:35:36 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-12 23:35:36 -0400 |
commit | bda74452a81963d20c099a1252caadde7049de10 (patch) | |
tree | 9ef469622275ee3ce899ae906a05133aedc8c7bf /config/config.go | |
parent | f37508a53980f38c530780650338797e81fe1e3c (diff) | |
download | aerc-bda74452a81963d20c099a1252caadde7049de10.zip |
Add outgoing account configuration
Diffstat (limited to 'config/config.go')
-rw-r--r-- | config/config.go | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/config/config.go b/config/config.go index a63b7e8..88986e3 100644 --- a/config/config.go +++ b/config/config.go @@ -29,11 +29,12 @@ const ( ) type AccountConfig struct { - Default string - Name string - Source string - Folders []string - Params map[string]string + Default string + Name string + Source string + Folders []string + Params map[string]string + Outgoing string } type BindingConfig struct { @@ -105,6 +106,8 @@ func loadAccountConfig(path string) ([]AccountConfig, error) { for key, val := range sec.KeysHash() { if key == "folders" { account.Folders = strings.Split(val, ",") + } else if key == "outgoing" { + account.Outgoing = val } else if key != "name" { account.Params[key] = val } |