From c2b6e7ff346e3373a4e33c946594bb6f08393ad3 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 16 Feb 2021 00:16:35 +0100 Subject: Issue #46: Move and rename writer; add comments --- internal/feed/mail.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/feed') diff --git a/internal/feed/mail.go b/internal/feed/mail.go index 0bc7d37..3010bfb 100644 --- a/internal/feed/mail.go +++ b/internal/feed/mail.go @@ -23,7 +23,7 @@ import ( "github.com/Necoro/feed2imap-go/internal/msg" "github.com/Necoro/feed2imap-go/pkg/config" "github.com/Necoro/feed2imap-go/pkg/log" - "github.com/Necoro/feed2imap-go/pkg/util" + "github.com/Necoro/feed2imap-go/pkg/rfc822" "github.com/Necoro/feed2imap-go/pkg/version" ) @@ -98,7 +98,7 @@ func (item *item) writeContentPart(w *message.Writer, typ string, tpl template.T } defer partW.Close() - if err = tpl.Execute(util.FixWriter(w), item); err != nil { + if err = tpl.Execute(rfc822.Writer(w), item); err != nil { return fmt.Errorf("writing %s part: %w", typ, err) } -- cgit v1.2.3-54-g00ecf