Prevent auto classification out of the spam folder

pull/190/head
M66B 4 years ago
parent 3189298bed
commit a810ea96ed

@ -3432,6 +3432,9 @@ You can clear local messages (long press a folder in the folder list of an accou
Moving a message on the device will reclassify the message. Moving a message on the device will reclassify the message.
Moving a message from another email client will not result in reclassification because IMAP does not support 'moved' notifications. Moving a message from another email client will not result in reclassification because IMAP does not support 'moved' notifications.
To prevent the email server from moving a message into the spam folder again,
auto classification out of the spam folder will be prevented to prevent an endless loop.
Classification is optimized to use as little resources as possible, but will inevitably use some extra battery power. Classification is optimized to use as little resources as possible, but will inevitably use some extra battery power.
You can delete all classification data by turning classification three times off. You can delete all classification data by turning classification three times off.

@ -111,7 +111,9 @@ public class MessageClassifier {
db.beginTransaction(); db.beginTransaction();
EntityFolder target = db.folder().getFolderByName(account.id, classified); 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))) { (EntityFolder.JUNK.equals(target.type) || ActivityBilling.isPro(context))) {
EntityOperation.queue(context, message, EntityOperation.MOVE, target.id, false, true); EntityOperation.queue(context, message, EntityOperation.MOVE, target.id, false, true);

Loading…
Cancel
Save