aboutsummaryrefslogtreecommitdiff
path: root/internal/feed
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2021-02-16 00:16:35 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2021-02-16 00:16:35 +0100
commitc2b6e7ff346e3373a4e33c946594bb6f08393ad3 (patch)
tree584016f7eda2672f8c25645d05cc3be9d9e9b999 /internal/feed
parent9d927b399e409990003b25efa8ca7395e9cad021 (diff)
downloadfeed2imap-go-c2b6e7ff346e3373a4e33c946594bb6f08393ad3.tar.gz
feed2imap-go-c2b6e7ff346e3373a4e33c946594bb6f08393ad3.tar.bz2
feed2imap-go-c2b6e7ff346e3373a4e33c946594bb6f08393ad3.zip
Issue #46: Move and rename writer; add comments
Diffstat (limited to 'internal/feed')
-rw-r--r--internal/feed/mail.go4
1 files changed, 2 insertions, 2 deletions
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)
}