aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/mail.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-07 00:13:34 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-07 00:13:34 +0200
commit345887f3c8319c6dd91f20cd75615fd5c9fcf460 (patch)
tree7adb89358d95067d46cf011771502984b9002b3a /internal/feed/mail.go
parent1bb9b56b214128cd98aabe66b41d0a05da3a0b05 (diff)
downloadfeed2imap-go-345887f3c8319c6dd91f20cd75615fd5c9fcf460.tar.gz
feed2imap-go-345887f3c8319c6dd91f20cd75615fd5c9fcf460.tar.bz2
feed2imap-go-345887f3c8319c6dd91f20cd75615fd5c9fcf460.zip
Unified publishedDate and updatedDate into one (just as the old feed2imap...)
Diffstat (limited to 'internal/feed/mail.go')
-rw-r--r--internal/feed/mail.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go
index 190e1f2..a763ef8 100644
--- a/internal/feed/mail.go
+++ b/internal/feed/mail.go
@@ -63,7 +63,7 @@ func (item *item) buildHeader() message.Header {
h.Set("Message-Id", item.messageId())
{ // date
- date := item.PublishedParsed
+ date := item.DateParsed()
if date == nil {
now := time.Now()
date = &now
@@ -73,7 +73,7 @@ func (item *item) buildHeader() message.Header {
{ // subject
subject := item.Title
if subject == "" {
- subject = item.Published
+ subject = item.Date()
}
if subject == "" {
subject = item.Link