aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-10 14:25:10 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-10 14:25:10 +0200
commit81d6c2939ac477db751094c4ed6c25349f8c1153 (patch)
treefea54f925b307132548c192870ca46c47adf5ff8
parentf03e35acfb802f3056caf65d03b46917840db211 (diff)
downloadfeed2imap-go-81d6c2939ac477db751094c4ed6c25349f8c1153.tar.gz
feed2imap-go-81d6c2939ac477db751094c4ed6c25349f8c1153.tar.bz2
feed2imap-go-81d6c2939ac477db751094c4ed6c25349f8c1153.zip
Fix building cache
Diffstat (limited to '')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index a1a0ffd..242dade 100644
--- a/main.go
+++ b/main.go
@@ -108,7 +108,9 @@ func run() error {
defer c.Disconnect()
}
- if !*buildCache {
+ if *buildCache {
+ state.Foreach((*feed.Feed).MarkSuccess)
+ } else {
state.ForeachGo(func(f *feed.Feed) {
processFeed(f, c, *dryRun)
})