diff options
Diffstat (limited to 'internal/feed')
-rw-r--r-- | internal/feed/mail.go | 8 |
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 } |