Prevent auto classification out of the spam folder

This commit is contained in:
M66B
2021-01-04 14:08:34 +01:00
parent 3189298bed
commit a810ea96ed
2 changed files with 6 additions and 1 deletions

View File

@@ -111,7 +111,9 @@ public class MessageClassifier {
db.beginTransaction();
EntityFolder target = db.folder().getFolderByName(account.id, classified);
if (target != null && !target.id.equals(folder.id) && target.auto_classify &&
if (target != null && target.auto_classify &&
!target.id.equals(folder.id) &&
!EntityFolder.JUNK.equals(folder.type) &&
(EntityFolder.JUNK.equals(target.type) || ActivityBilling.isPro(context))) {
EntityOperation.queue(context, message, EntityOperation.MOVE, target.id, false, true);