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:
@ -206,7 +206,7 @@ func (m *Msg) markResult(code int, secode string, errmsg string, success bool) {
|
||||
result.Code = code
|
||||
result.Secode = secode
|
||||
result.Error = errmsg
|
||||
result.Success = false
|
||||
result.Success = success
|
||||
}
|
||||
|
||||
// LastResult returns the last result entry, or an empty result.
|
||||
|
Reference in New Issue
Block a user