Add a 'folders-exclude' option
Added a 'folders-exclude' option that allows removing selected folders from the directory list sidebar. My motivating example was that removing a single folder from the list using Golang regexes seemed pretty hard, so this is a better way to do it. The excluded folders list is included in the man page.
This commit is contained in:
parent
bf16ccde48
commit
e1c2b596dc
3 changed files with 43 additions and 14 deletions
config
|
@ -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" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue