mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-05-02 01:56:28 +03:00
Clean up destination queues when moving messages from Outbox
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user