aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/accounts.go18
1 files changed, 2 insertions, 16 deletions
diff --git a/config/accounts.go b/config/accounts.go
index cbdf54a8..a95a4485 100644
--- a/config/accounts.go
+++ b/config/accounts.go
@@ -206,23 +206,9 @@ func parseAccounts(root string, accts []string) error {
typ := reflect.TypeOf(account)
for i := 0; i < typ.NumField(); i++ {
field := typ.Field(i)
- switch field.Tag.Get("ini") {
- case key:
- fallthrough
- case "source":
- fallthrough
- case "source-cred-cmd":
- fallthrough
- case "outgoing":
- fallthrough
- case "outgoing-cred-cmd":
- fallthrough
- case "outgoing-cred-cmd-cache":
- fallthrough
- case "subject-re-pattern":
- fallthrough
- case "pgp-error-level":
+ if field.Tag.Get("ini") == key {
backendSpecific = false
+ break
}
}
if backendSpecific {