mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:54:40 +03:00
when cleaning up messages in rejects mailbox, remove the on-disk message file too
we were leaving files behind
This commit is contained in:
@ -2231,7 +2231,9 @@ func (c *conn) deliver(ctx context.Context, recvHdrFor func(string) string, msgW
|
||||
|
||||
conf, _ := acc.Conf()
|
||||
if conf.RejectsMailbox != "" && messageID != "" {
|
||||
acc.RejectsRemove(log, conf.RejectsMailbox, messageID)
|
||||
if err := acc.RejectsRemove(log, conf.RejectsMailbox, messageID); err != nil {
|
||||
log.Errorx("removing message from rejects mailbox", err, mlog.Field("messageID", messageID))
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user