mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 03:26:37 +03:00
When retraining ham/spam messages, don't make existence of the messages optional.
If messages that should exist don't, that's a real error we don't want to hide. Part of larger changes.
This commit is contained in:
@ -283,7 +283,7 @@ func (c *conn) cmdxReplace(isUID bool, tag, cmd string, p *parser) {
|
||||
// Undo any junk filter training for the old message.
|
||||
om.Junk = false
|
||||
om.Notjunk = false
|
||||
err = c.account.RetrainMessages(context.TODO(), c.log, tx, []store.Message{om}, false)
|
||||
err = c.account.RetrainMessages(context.TODO(), c.log, tx, []store.Message{om})
|
||||
xcheckf(err, "untraining expunged messages")
|
||||
|
||||
// Mark old message expunged.
|
||||
|
Reference in New Issue
Block a user