aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index 2ce7943..7e6d560 100644
--- a/main.go
+++ b/main.go
@@ -27,9 +27,13 @@ func run() error {
return err
}
+ if err = cfg.Validate(); err != nil {
+ return fmt.Errorf("Configuration invalid: %w", err)
+ }
+
feed.Parse(feeds)
- imapUrl, err := url.Parse(cfg.GlobalConfig["target"].(string))
+ imapUrl, err := url.Parse(cfg.Target)
if err != nil {
return fmt.Errorf("parsing 'target': %w", err)
}
e9432098a0e94f3ae5a3b9c36aa538eae6&follow=1'>AK --> amd64René 'Necoro' Neumann1-1/+1 2012-05-29Ignore -m in cciRené Neumann1-0/+3 2012-05-29Force man to not use localized man-pagesRené Neumann1-0/+3 2012-05-21Revert "It uses pinentry directly -- so no use to play around with ssh-add"René 'Necoro' Neumann1-0/+6 2012-05-20It uses pinentry directly -- so no use to play around with ssh-addRené Neumann1-6/+0