mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 03:26:37 +03:00
for messages retired from the delivery queue, set "success" field properly, and include the smtp code/enhanced code on success too (not only on failure)
noticed some time ago when looking at my retired messages queue.
This commit is contained in:
@ -264,7 +264,8 @@ func processDeliveries(qlog mlog.Log, m0 *Msg, msgs []*Msg, remoteAddr string, r
|
||||
failMsgsDB(qmlog, []*Msg{m}, m0.DialedIPs, backoff, remoteMTA, err)
|
||||
failed++
|
||||
} else {
|
||||
m.markResult(0, "", "", true)
|
||||
resp := rcptErrs[i]
|
||||
m.markResult(resp.Code, resp.Secode, "", true)
|
||||
delMsgs = append(delMsgs, *m)
|
||||
qmlog.Info("delivered from queue with transport")
|
||||
delivered++
|
||||
|
Reference in New Issue
Block a user