diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-26 18:12:55 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-26 18:12:55 +0200 |
commit | e4871e3834397e34a83a8df62dafe5a0875555ae (patch) | |
tree | 55aa8c070ee93110569bd9065033435929f7cbba /pkg/config | |
parent | ac568556e41231e07dd55b1d79675064ef4fed7b (diff) | |
download | feed2imap-go-e4871e3834397e34a83a8df62dafe5a0875555ae.tar.gz feed2imap-go-e4871e3834397e34a83a8df62dafe5a0875555ae.tar.bz2 feed2imap-go-e4871e3834397e34a83a8df62dafe5a0875555ae.zip |
Option `always-new`
Diffstat (limited to '')
-rw-r--r-- | pkg/config/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go index b24a9e8..37dffcf 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -39,6 +39,7 @@ type Options struct { InclImages *bool `yaml:"include-images"` Disable *bool `yaml:"disable"` IgnHash *bool `yaml:"ignore-hash"` + AlwaysNew *bool `yaml:"always-new"` } func (opt *Options) mergeFrom(other Options) { @@ -51,6 +52,9 @@ func (opt *Options) mergeFrom(other Options) { if opt.IgnHash == nil { opt.IgnHash = other.IgnHash } + if opt.AlwaysNew == nil { + opt.AlwaysNew = other.AlwaysNew + } if opt.Disable == nil { opt.Disable = other.Disable } @@ -66,6 +70,7 @@ func init() { MinFreq: &one, InclImages: &fal, IgnHash: &fal, + AlwaysNew: &fal, Disable: &fal, } } |