Make Message-ID RFC compliant
j3s j3s@cyberia.club
Fri, 06 Dec 2019 19:27:22 -0600
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
mail/main.go
→
mail/main.go
@@ -450,7 +450,7 @@ if !e.Date.IsZero() {
fmt.Fprintf(&buf, "Date: %s\r\n", e.Date) } if len(e.MessageID) > 0 { - fmt.Fprintf(&buf, "Message-ID: %s\r\n", e.MessageID) + fmt.Fprintf(&buf, "Message-ID: <%s>\r\n", e.MessageID) } if len(e.InReplyTo) > 0 { fmt.Fprintf(&buf, "In-Reply-To: <%s>\r\n", strings.Join(e.InReplyTo, "> <"))