diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-03 00:06:47 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-03 00:06:47 +0200 |
commit | eb6f0e850adeb0a729a5c24f38a04fba9a93812c (patch) | |
tree | e5e19d0e330e6b0837c5bf3c4acae241865264d1 /internal/feed/mail.go | |
parent | 1525392a23c86214bf7ad1b5b7d8983f7b30837a (diff) | |
download | feed2imap-go-eb6f0e850adeb0a729a5c24f38a04fba9a93812c.tar.gz feed2imap-go-eb6f0e850adeb0a729a5c24f38a04fba9a93812c.tar.bz2 feed2imap-go-eb6f0e850adeb0a729a5c24f38a04fba9a93812c.zip |
Fix typo
Diffstat (limited to 'internal/feed/mail.go')
-rw-r--r-- | internal/feed/mail.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go index 8bb9846..8037221 100644 --- a/internal/feed/mail.go +++ b/internal/feed/mail.go @@ -25,7 +25,7 @@ func address(name, address string) []*mail.Address { return []*mail.Address{{Name: name, Address: address}} } -func (item *item) fromAdress() []*mail.Address { +func (item *item) fromAddress() []*mail.Address { switch { case item.Item.Author != nil && item.Item.Author.Email != "": return address(item.Item.Author.Name, item.Item.Author.Email) @@ -51,7 +51,7 @@ func (item *item) writeHtml(writer io.Writer) error { func (item *item) buildHeader() message.Header { var h mail.Header h.SetContentType("multipart/alternative", nil) - h.SetAddressList("From", item.fromAdress()) + h.SetAddressList("From", item.fromAddress()) h.SetAddressList("To", item.toAddress()) h.Set("X-Feed2Imap-Version", config.Version()) h.Set("X-Feed2Imap-Reason", strings.Join(item.reasons, ",")) |