Clean up destination queues when moving messages from Outbox

This commit is contained in:
Neil Alexander
2025-12-02 22:34:08 +00:00
parent 8385ac78da
commit 6e29644f82
2 changed files with 10 additions and 3 deletions

View File

@@ -326,6 +326,9 @@ func (mbox *Mailbox) MoveMessages(uid bool, seqset *imap.SeqSet, dest string) er
if err := mbox.backend.Storage.MailMove(mbox.name, int(id), dest); err != nil {
return err
}
if mbox.name == "Outbox" {
mbox.backend.Storage.QueueDeleteDestinationForID("Outbox", int(id))
}
}
return nil
}