diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-02 20:53:35 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-02 20:53:35 +0200 |
commit | 6bd8a6c2cd153bad9ca044b409e55302e10206c1 (patch) | |
tree | da1f175a7260a13fdfaa9a8817fc38351a480837 /main.go | |
parent | 477241a2c2356c61b7317246040aee50d2a7a81d (diff) | |
download | feed2imap-go-6bd8a6c2cd153bad9ca044b409e55302e10206c1.tar.gz feed2imap-go-6bd8a6c2cd153bad9ca044b409e55302e10206c1.tar.bz2 feed2imap-go-6bd8a6c2cd153bad9ca044b409e55302e10206c1.zip |
Restructure
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,8 +19,8 @@ var debug = flag.Bool("d", false, "enable debug output") var dryRun = flag.Bool("dry-run", false, "do everything short of uploading and writing the cache") var buildCache = flag.Bool("build-cache", false, "only (re)build the cache; useful after migration or when the cache is lost or corrupted") -func processFeed(feed *feed.Feed, cfg *config.Config, client *imap.Client, dryRun bool) { - mails, err := feed.ToMails(cfg) +func processFeed(feed *feed.Feed, client *imap.Client, dryRun bool) { + mails, err := feed.ToMails() if err != nil { log.Errorf("Processing items of feed %s: %s", feed.Name, err) return @@ -103,7 +103,7 @@ func run() error { if !*buildCache { state.ForeachGo(func(f *feed.Feed) { - processFeed(f, cfg, c, *dryRun) + processFeed(f, c, *dryRun) }) } |