diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-26 00:23:49 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-26 00:23:49 +0200 |
commit | a83e9bd36fc6a934553d93cbcc0edb120321f971 (patch) | |
tree | a9cc04ca3a0f8392f6ccbf470b323794e535ae7a /internal/feed/mail.go | |
parent | 87fd0ad3e9309064fe9fda373035f5ce127ae8d8 (diff) | |
download | feed2imap-go-a83e9bd36fc6a934553d93cbcc0edb120321f971.tar.gz feed2imap-go-a83e9bd36fc6a934553d93cbcc0edb120321f971.tar.bz2 feed2imap-go-a83e9bd36fc6a934553d93cbcc0edb120321f971.zip |
Filtering from cache
Diffstat (limited to '')
-rw-r--r-- | internal/feed/mail.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go index d07f8cf..620b444 100644 --- a/internal/feed/mail.go +++ b/internal/feed/mail.go @@ -4,6 +4,7 @@ import ( "bytes" "fmt" "io" + "strings" "time" "github.com/emersion/go-message/mail" @@ -40,6 +41,7 @@ func writeToBuffer(b *bytes.Buffer, feed *Feed, item feeditem, cfg *config.Confi h.SetAddressList("From", fromAdress(feed, item, cfg)) h.SetAddressList("To", address(feed.Name, cfg.DefaultEmail)) h.Add("X-Feed2Imap-Version", config.Version()) + h.Add("X-Feed2Imap-Reason", strings.Join(item.reasons, ",")) { // date date := item.Item.PublishedParsed |