add 'nohtml' option, fixes #5

This commit is contained in:
Aine
2022-08-26 15:56:25 +03:00
parent a7877cac00
commit 41a52c1eca
4 changed files with 14 additions and 1 deletions

View File

@@ -60,6 +60,10 @@ func (s settings) NoSubject() bool {
return utils.Bool(s.Get(optionNoSubject))
}
func (s settings) NoHTML() bool {
return utils.Bool(s.Get(optionNoHTML))
}
// Set option
func (s settings) Set(key, value string) {
s[strings.ToLower(strings.TrimSpace(key))] = value