mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-05-06 20:06:28 +03:00
Add Delivery-Date on receipt, set Date on send if not set
This commit is contained in:
@@ -61,6 +61,11 @@ func (s *SessionLocal) Data(r io.Reader) error {
|
||||
time.Now().String(),
|
||||
),
|
||||
)
|
||||
if !m.Header.Has("Date") {
|
||||
m.Header.Add(
|
||||
"Date", time.Now().UTC().Format(time.RFC822),
|
||||
)
|
||||
}
|
||||
|
||||
var b bytes.Buffer
|
||||
if err := m.WriteTo(&b); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user