diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-01 21:39:37 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-01 21:39:37 +0200 |
commit | 04a4897b69f9a10bdea27fb1133bcab71c40b687 (patch) | |
tree | dbe438199c33439d7731f9fc9e5d565ce0b6418b /pkg/config/config.go | |
parent | 9990266256b8859b3d500ff0fc0fcee6e1e64193 (diff) | |
download | feed2imap-go-04a4897b69f9a10bdea27fb1133bcab71c40b687.tar.gz feed2imap-go-04a4897b69f9a10bdea27fb1133bcab71c40b687.tar.bz2 feed2imap-go-04a4897b69f9a10bdea27fb1133bcab71c40b687.zip |
Config option 'max-failures'
Diffstat (limited to '')
-rw-r--r-- | pkg/config/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go index 6d51ffc..ffb53b7 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -22,11 +22,13 @@ type GlobalOptions struct { DefaultEmail string `yaml:"default-email"` Target string `yaml:"target"` Parts []string `yaml:"parts"` + MaxFailures int `yaml:"max-failures"` } // Default global options var DefaultGlobalOptions = GlobalOptions{ Timeout: 30, + MaxFailures: 10, DefaultEmail: username() + "@" + hostname(), Target: "", Parts: []string{"text", "html"}, |