aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-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
}