config: sort account folders
directory list depends on these being sorted
This commit is contained in:
parent
0771eaf24c
commit
6c6bb4c893
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,7 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path"
|
"path"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
|
@ -122,7 +123,9 @@ func loadAccountConfig(path string) ([]AccountConfig, error) {
|
||||||
}
|
}
|
||||||
for key, val := range sec.KeysHash() {
|
for key, val := range sec.KeysHash() {
|
||||||
if key == "folders" {
|
if key == "folders" {
|
||||||
account.Folders = strings.Split(val, ",")
|
folders := strings.Split(val, ",")
|
||||||
|
sort.Strings(folders)
|
||||||
|
account.Folders = folders
|
||||||
} else if key == "source-cred-cmd" {
|
} else if key == "source-cred-cmd" {
|
||||||
account.SourceCredCmd = val
|
account.SourceCredCmd = val
|
||||||
} else if key == "outgoing" {
|
} else if key == "outgoing" {
|
||||||
|
|
Loading…
Reference in a new issue