aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-04 23:35:16 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-04 23:35:16 +0200
commitd563ce2feb94029d3dd518830790573077f84b16 (patch)
tree46ff93854fd755329df4a0d113876737dd95ff9d
parent6cf3f77c79ff916f50098ff20718bb60b01ae67e (diff)
downloadfeed2imap-go-d563ce2feb94029d3dd518830790573077f84b16.tar.gz
feed2imap-go-d563ce2feb94029d3dd518830790573077f84b16.tar.bz2
feed2imap-go-d563ce2feb94029d3dd518830790573077f84b16.zip
Min frequency should be 0 by default
-rw-r--r--config.yml.example4
-rw-r--r--pkg/config/config.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/config.yml.example b/config.yml.example
index 52eae0a..ef78d70 100644
--- a/config.yml.example
+++ b/config.yml.example
@@ -28,8 +28,8 @@ default-email: username@hostname
# NB: For compatibility with old feed2imap, options existing in feed2imap can also be specified at the toplevel,
# i.e. not beneath 'options'. Triggers a warning though :)
options:
- # Frequency in hours for checking.
- min-frequency: 1
+ # Frequency in hours for checking. 0 = on each run.
+ min-frequency: 0
# Include images referenced in the item per URL in the mail.
# For instance, when a feed item includes <img src="https://some.example/foo.png">, this image is fetched
# and included in the mail.
diff --git a/pkg/config/config.go b/pkg/config/config.go
index 8d97a56..8e2aff6 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -50,7 +50,7 @@ type Options struct {
// Default feed options
var DefaultFeedOptions = Options{
Body: "default",
- MinFreq: 1,
+ MinFreq: 0,
InclImages: true,
EmbedImages: false,
IgnHash: false,