Merge branch 'show-option-value-in-help' into 'main'

Show option values in help

See merge request etke.cc/postmoogle!21
This commit is contained in:
Aine
2022-08-28 15:37:29 +00:00
3 changed files with 135 additions and 116 deletions

View File

@@ -21,13 +21,7 @@ type settingsOld struct {
// Get option
func (s settings) Get(key string) string {
value := s[strings.ToLower(strings.TrimSpace(key))]
sanitizer, ok := sanitizers[key]
if ok {
return sanitizer(value)
}
return value
return s[strings.ToLower(strings.TrimSpace(key))]
}
func (s settings) Mailbox() string {