diff options
Diffstat (limited to 'config/config.go')
-rw-r--r-- | config/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index 8ebd69d3..ce599440 100644 --- a/config/config.go +++ b/config/config.go @@ -76,6 +76,7 @@ type AccountConfig struct { Source string SourceCredCmd string Folders []string + FoldersExclude []string Params map[string]string Outgoing string OutgoingCredCmd string @@ -186,6 +187,10 @@ func loadAccountConfig(path string) ([]AccountConfig, error) { folders := strings.Split(val, ",") sort.Strings(folders) account.Folders = folders + } else if key == "folders-exclude" { + folders := strings.Split(val, ",") + sort.Strings(folders) + account.FoldersExclude = folders } else if key == "source-cred-cmd" { account.SourceCredCmd = val } else if key == "outgoing" { |