From 6bd8a6c2cd153bad9ca044b409e55302e10206c1 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sat, 2 May 2020 20:53:35 +0200 Subject: Restructure --- pkg/config/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkg/config/config.go') 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 -- cgit v1.2.3-54-g00ecf