mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +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:
parent
1c934f0103
commit
79da4faaa1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue