aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-01-10 22:33:35 +0100
committerRobin Jarry <robin@jarry.cc>2023-01-11 14:13:04 +0100
commitc6142b2267f689d5be893f6750e514fa9ba5f93c (patch)
tree86d13fdaa5d8e62288ba3421ff46d5aebe972dd5
parent3602fc620bc6a5e5cb8a4223399b6cbad11f9d65 (diff)
downloadaerc-c6142b2267f689d5be893f6750e514fa9ba5f93c.tar.gz
config: disable ini reflection for pgp-error-level
This field must be converted from a string value to an integer manually. The conversion cannot be automated via go ini reflection mechanism. Fixes: 2af81a743048 ("pgp: add configurable error level for opportunistic encryption") Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Jose Lombera <jose@lombera.dev>
-rw-r--r--config/accounts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/accounts.go b/config/accounts.go
index a95a4485..e9b7c633 100644
--- a/config/accounts.go
+++ b/config/accounts.go
@@ -101,7 +101,7 @@ type AccountConfig struct {
PgpKeyId string `ini:"pgp-key-id"`
PgpAutoSign bool `ini:"pgp-auto-sign"`
PgpOpportunisticEncrypt bool `ini:"pgp-opportunistic-encrypt"`
- PgpErrorLevel int `ini:"pgp-error-level"`
+ PgpErrorLevel int `ini:"-"`
// AuthRes
TrustedAuthRes []string `ini:"trusted-authres" delim:","`