aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/mail.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-21 22:20:42 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-21 22:20:42 +0200
commit0179262628cadd3ed402880a03f3d812f327feec (patch)
tree32c193f533087edf0916d11d61e0fa33172f8961 /internal/feed/mail.go
parent89f46e31998dd62a52d7dd07b16f1d81d9597e3e (diff)
downloadfeed2imap-go-0179262628cadd3ed402880a03f3d812f327feec.tar.gz
feed2imap-go-0179262628cadd3ed402880a03f3d812f327feec.tar.bz2
feed2imap-go-0179262628cadd3ed402880a03f3d812f327feec.zip
Improved HTML creation
Diffstat (limited to 'internal/feed/mail.go')
-rw-r--r--internal/feed/mail.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go
index 94f2ea1..ab468cc 100644
--- a/internal/feed/mail.go
+++ b/internal/feed/mail.go
@@ -39,6 +39,7 @@ func writeToBuffer(b *bytes.Buffer, feed *Feed, item feeditem, cfg config.Config
var h mail.Header
h.SetAddressList("From", fromAdress(feed, item, cfg))
h.SetAddressList("To", address(feed.Name, cfg.DefaultEmail))
+ h.Add("X-Feed2Imap-Version", config.Version())
{ // date
date := item.Item.PublishedParsed