aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/feed/mail.go1
-rw-r--r--internal/msg/msg.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go
index 55cb569..b778ee3 100644
--- a/internal/feed/mail.go
+++ b/internal/feed/mail.go
@@ -58,6 +58,7 @@ func (item *item) buildHeader() message.Header {
h.Set(msg.VersionHeader, version.Version())
h.Set(msg.ReasonHeader, strings.Join(item.reasons, ","))
h.Set(msg.IdHeader, item.id())
+ h.Set(msg.CreateHeader, time.Now().Format(time.RFC1123Z))
if item.GUID != "" {
h.Set(msg.GuidHeader, item.GUID)
}
diff --git a/internal/msg/msg.go b/internal/msg/msg.go
index a742a9d..c96bc6c 100644
--- a/internal/msg/msg.go
+++ b/internal/msg/msg.go
@@ -13,6 +13,7 @@ const (
ReasonHeader = "X-Feed2Imap-Reason"
IdHeader = "X-Feed2Imap-Item"
GuidHeader = "X-Feed2Imap-Guid"
+ CreateHeader = "X-Feed2Imap-Create-Date"
)
type Messages []Message