aboutsummaryrefslogtreecommitdiff
path: root/internal/feed
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-22 00:02:43 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-22 00:02:57 +0200
commitb76e54dcc35195da55494ac6815d44a3b9434d68 (patch)
treef0ff14f55b44fff87144c39a22dc8c464a461e55 /internal/feed
parent9f996ceddfd8e40c5c404182ab70f8ddc18f29c6 (diff)
downloadfeed2imap-go-b76e54dcc35195da55494ac6815d44a3b9434d68.tar.gz
feed2imap-go-b76e54dcc35195da55494ac6815d44a3b9434d68.tar.bz2
feed2imap-go-b76e54dcc35195da55494ac6815d44a3b9434d68.zip
Use patched version of go-message
Diffstat (limited to '')
-rw-r--r--internal/feed/mail.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go
index ab468cc..256c4fe 100644
--- a/internal/feed/mail.go
+++ b/internal/feed/mail.go
@@ -60,13 +60,7 @@ func writeToBuffer(b *bytes.Buffer, feed *Feed, item feeditem, cfg config.Config
h.SetSubject(subject)
}
- mw, err := mail.CreateWriter(b, h)
- if err != nil {
- return err
- }
- defer mw.Close()
-
- tw, err := mw.CreateInline()
+ tw, err := mail.CreateInlineWriter(b, h)
if err != nil {
return err
}