aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-14 23:37:35 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-14 23:37:35 +0200
commit2a8e0cf3750d3f789bcd756e39af04f00fe0e738 (patch)
tree384fcd7c9b34de17a6e516b9e2de9c88fa11a6f1 /main.go
parent65fe5cb5c88beabf6c045f20738af71c8d0e38ec (diff)
downloadfeed2imap-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.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/main.go b/main.go
index e6faa68..f2a2447 100644
--- a/main.go
+++ b/main.go
@@ -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
}