mirror of
https://github.com/mjl-/mox.git
synced 2025-07-13 00:54:38 +03:00
add Delivered-To header when locally delivering a DSN
so tools can pick it up and find the original "MAIL FROM", and take the encode destination address or message id from its localpart.
This commit is contained in:
@ -162,7 +162,8 @@ func deliverDSN(ctx context.Context, log mlog.Log, m Msg, remoteMTA dsn.NameIP,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
msgData = append([]byte("Return-Path: <"+dsnMsg.From.XString(m.SMTPUTF8)+">\r\n"), msgData...)
|
prefix := []byte("Return-Path: <" + dsnMsg.From.XString(m.SMTPUTF8) + ">\r\n" + "Delivered-To: " + m.Sender().XString(m.SMTPUTF8) + "\r\n")
|
||||||
|
msgData = append(prefix, msgData...)
|
||||||
|
|
||||||
mailbox := "Inbox"
|
mailbox := "Inbox"
|
||||||
senderAccount := m.SenderAccount
|
senderAccount := m.SenderAccount
|
||||||
|
Reference in New Issue
Block a user