Move de-classifying to core

This commit is contained in:
M66B 2021-01-02 20:24:17 +01:00
parent 7a335beb5b
commit 1666326c59
2 changed files with 4 additions and 3 deletions

View File

@ -998,6 +998,10 @@ class Core {
if (folder.id.equals(target.id))
throw new IllegalArgumentException("self");
// De-classify
for (EntityMessage message : messages)
MessageClassifier.classify(message, false, context);
IMAPFolder itarget = (IMAPFolder) istore.getFolder(target.name);
// Get source messages

View File

@ -229,9 +229,6 @@ public class EntityOperation {
db.rule().deleteRule(rule.id);
}
if (message.content)
MessageClassifier.classify(message, false, context);
// Create copy without uid in target folder
// Message with same msgid can be in archive
if (message.uid != null &&