aboutsummaryrefslogtreecommitdiff
path: root/internal/feed
diff options
context:
space:
mode:
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
}