diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-14 23:37:35 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-14 23:37:35 +0200 |
commit | 2a8e0cf3750d3f789bcd756e39af04f00fe0e738 (patch) | |
tree | 384fcd7c9b34de17a6e516b9e2de9c88fa11a6f1 /main.go | |
parent | 65fe5cb5c88beabf6c045f20738af71c8d0e38ec (diff) | |
download | feed2imap-go-2a8e0cf3750d3f789bcd756e39af04f00fe0e738.tar.gz feed2imap-go-2a8e0cf3750d3f789bcd756e39af04f00fe0e738.tar.bz2 feed2imap-go-2a8e0cf3750d3f789bcd756e39af04f00fe0e738.zip |
Verbose variant of 'target' in config
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -3,7 +3,6 @@ package main import ( "flag" "fmt" - "net/url" "os" "github.com/Necoro/feed2imap-go/internal/feed" @@ -107,14 +106,9 @@ func run() error { state.Filter() - imapUrl, err := url.Parse(cfg.Target) - if err != nil { - return fmt.Errorf("parsing 'target': %w", err) - } - var c *imap.Client if !dryRun && !buildCache { - if c, err = imap.Connect(imapUrl); err != nil { + if c, err = imap.Connect(cfg.Target); err != nil { return err } |