mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Prevent auto classification out of the spam folder
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user