1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

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 &&