mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-07 06:57:37 +03:00
queue: Fix NDNs being generated for all messages
This commit is contained in:
parent
a887672239
commit
f8fe530612
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ func (q *Queue) tryDelivery(meta *QueueMetadata, header textproto.Header, body b
|
|||
if len(meta.FailedRcpts) != 0 {
|
||||
dl.Printf("permanently failed to deliver to %v, errors: %v", meta.FailedRcpts, meta.RcptErrs)
|
||||
}
|
||||
if !meta.DSN {
|
||||
if (len(meta.FailedRcpts) != 0 || meta.TriesCount == q.maxTries) && !meta.DSN {
|
||||
q.emitDSN(meta, header)
|
||||
}
|
||||
q.removeFromDisk(meta.MsgMeta)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue