From 40f7f691d4143c7be4dc72babb2b5288cbfef45c Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 3 May 2020 15:53:53 +0200 Subject: Explicit version info --- internal/feed/mail.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/feed/mail.go') diff --git a/internal/feed/mail.go b/internal/feed/mail.go index 290c965..2b0cdf7 100644 --- a/internal/feed/mail.go +++ b/internal/feed/mail.go @@ -20,6 +20,7 @@ import ( "github.com/Necoro/feed2imap-go/internal/msg" "github.com/Necoro/feed2imap-go/pkg/config" "github.com/Necoro/feed2imap-go/pkg/log" + "github.com/Necoro/feed2imap-go/pkg/version" ) func address(name, address string) []*mail.Address { @@ -54,7 +55,7 @@ func (item *item) buildHeader() message.Header { h.SetContentType("multipart/alternative", nil) h.SetAddressList("From", item.fromAddress()) h.SetAddressList("To", item.toAddress()) - h.Set(msg.VersionHeader, config.Version()) + h.Set(msg.VersionHeader, version.Version()) h.Set(msg.ReasonHeader, strings.Join(item.reasons, ",")) h.Set(msg.IdHeader, item.id()) h.Set("Message-Id", item.messageId()) -- cgit v1.2.3-70-g09d2