diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-02 20:53:35 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-02 20:53:35 +0200 |
commit | 6bd8a6c2cd153bad9ca044b409e55302e10206c1 (patch) | |
tree | da1f175a7260a13fdfaa9a8817fc38351a480837 /pkg/config | |
parent | 477241a2c2356c61b7317246040aee50d2a7a81d (diff) | |
download | feed2imap-go-6bd8a6c2cd153bad9ca044b409e55302e10206c1.tar.gz feed2imap-go-6bd8a6c2cd153bad9ca044b409e55302e10206c1.tar.bz2 feed2imap-go-6bd8a6c2cd153bad9ca044b409e55302e10206c1.zip |
Restructure
Diffstat (limited to '')
-rw-r--r-- | pkg/config/config.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go index 993cd71..689ad58 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -85,13 +85,13 @@ func (cfg *Config) Validate() error { } // Marks whether 'text' part should be included in mails -func (cfg *Config) WithPartText() bool { - return util.StrContains(cfg.Parts, "text") +func (opt GlobalOptions) WithPartText() bool { + return util.StrContains(opt.Parts, "text") } // Marks whether 'html' part should be included in mails -func (cfg *Config) WithPartHtml() bool { - return util.StrContains(cfg.Parts, "html") +func (opt GlobalOptions) WithPartHtml() bool { + return util.StrContains(opt.Parts, "html") } // Current feed2imap version |