aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/config.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-08-22 15:57:19 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-08-22 15:57:19 +0200
commitaf957a67eb34430d5788bf1d2cb8e1aa1e46f3ff (patch)
tree6758764e1008e2a3fc01c166f4618b137ac975d2 /pkg/config/config.go
parent1e57a00c41035b7c3a1c4c5f230281b7461d90a5 (diff)
downloadfeed2imap-go-af957a67eb34430d5788bf1d2cb8e1aa1e46f3ff.tar.gz
feed2imap-go-af957a67eb34430d5788bf1d2cb8e1aa1e46f3ff.tar.bz2
feed2imap-go-af957a67eb34430d5788bf1d2cb8e1aa1e46f3ff.zip
#26: Introduce new option `auto-target`
Diffstat (limited to 'pkg/config/config.go')
-rw-r--r--pkg/config/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
index e98a1aa..31012a1 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -22,6 +22,7 @@ type GlobalOptions struct {
Target Url `yaml:"target"`
Parts []string `yaml:"parts"`
MaxFailures int `yaml:"max-failures"`
+ AutoTarget bool `yaml:"auto-target"`
}
// Default global options
@@ -31,6 +32,7 @@ var DefaultGlobalOptions = GlobalOptions{
DefaultEmail: username() + "@" + Hostname(),
Target: Url{},
Parts: []string{"text", "html"},
+ AutoTarget: true,
}
// Per feed options