aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-03 00:37:24 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-03 00:37:24 +0200
commitfec3ecd257c34fba37703b2999ab5ea902314657 (patch)
tree8a6f1840632bc0b1840349e64544eec4cd50c8dd
parenteb6f0e850adeb0a729a5c24f38a04fba9a93812c (diff)
downloadfeed2imap-go-fec3ecd257c34fba37703b2999ab5ea902314657.tar.gz
feed2imap-go-fec3ecd257c34fba37703b2999ab5ea902314657.tar.bz2
feed2imap-go-fec3ecd257c34fba37703b2999ab5ea902314657.zip
Option "reupload-if-updated"
-rw-r--r--config.yml.example3
-rw-r--r--pkg/config/config.go1
2 files changed, 4 insertions, 0 deletions
diff --git a/config.yml.example b/config.yml.example
index bef8f08..52eae0a 100644
--- a/config.yml.example
+++ b/config.yml.example
@@ -57,6 +57,9 @@ options:
# perfectly. When this flag is enabled, all items which don't match exactly any previously downloaded item are
# considered as new items.
always-new: false
+ # If an item is updated, but has been deleted on the server already, it is re-uploaded when this option is true.
+ # Else it is ignored.
+ reupload-if-updated: false
## Feeds
# Each feed must have a name and a URL. The name must be unique.
diff --git a/pkg/config/config.go b/pkg/config/config.go
index 689ad58..eec2751 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -43,6 +43,7 @@ type Options struct {
Disable bool `yaml:"disable"`
IgnHash bool `yaml:"ignore-hash"`
AlwaysNew bool `yaml:"always-new"`
+ Reupload bool `yaml:"reupload-if-updated"`
NoTLS bool `yaml:"tls-no-verify"`
Body Body `yaml:"body"`
}