Format timestamp according to RFC 5322 as described in RFC 5321 (chapter 4.4):

Time-stamp-line = "Received:" FWS Stamp <CRLF>
Stamp = From-domain By-domain Opt-info [CFWS] ";"
FWS date-time
; where "date-time" is as defined in RFC 5322 [4]
; but the "obs-" forms, especially two-digit
; years, are prohibited in SMTP and MUST NOT be used.
...
This commit is contained in:
Bernhard Froehlich 2018-12-14 11:20:58 +00:00
parent e7d1686eae
commit 0002b7c334
No known key found for this signature in database
GPG key ID: 4DD88C3F9F3B8333

View file

@ -46,7 +46,7 @@ func (env *Envelope) AddReceivedLine(peer Peer) {
peer.ServerName,
peer.Protocol,
tlsDetails,
time.Now().Format("Mon Jan 2 15:04:05 -0700 2006"),
time.Now().Format("Mon, 02 Jan 2006 15:04:05 -0700 (MST)"),
)))
env.Data = append(env.Data, line...)