aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2022-01-09 01:20:34 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2022-01-09 13:18:32 +0100
commit0384d631d2edb8383d0840940be066d96a5badc7 (patch)
tree71cac6f7f309794b4a72e88afa1c3aedcc6bd6b2 /pkg
parent914be83c6066ffb8103707528f8e8279df97bf63 (diff)
downloadfeed2imap-go-0384d631d2edb8383d0840940be066d96a5badc7.tar.gz
feed2imap-go-0384d631d2edb8383d0840940be066d96a5badc7.tar.bz2
feed2imap-go-0384d631d2edb8383d0840940be066d96a5badc7.zip
#66: Support for specifying custom templates
Diffstat (limited to 'pkg')
-rw-r--r--pkg/config/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
index 218ccb3..a580337 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -24,6 +24,8 @@ type GlobalOptions struct {
Parts []string `yaml:"parts"`
MaxFailures int `yaml:"max-failures"`
AutoTarget bool `yaml:"auto-target"`
+ HtmlTemplate string `yaml:"html-template"`
+ TextTemplate string `yaml:"text-template"`
}
var DefaultGlobalOptions = GlobalOptions{
@@ -34,6 +36,8 @@ var DefaultGlobalOptions = GlobalOptions{
Target: Url{},
Parts: []string{"text", "html"},
AutoTarget: true,
+ HtmlTemplate: "",
+ TextTemplate: "",
}
// Options are feed specific