From 0789569664769d98b407ba82aceb083df445d822 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 14 Nov 2021 08:06:54 +0100 Subject: [PATCH] Disable auto read when moving from junk to inbox --- app/src/main/java/eu/faircode/email/EntityOperation.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/EntityOperation.java b/app/src/main/java/eu/faircode/email/EntityOperation.java index 0d4ac8bda9..afe84ac00e 100644 --- a/app/src/main/java/eu/faircode/email/EntityOperation.java +++ b/app/src/main/java/eu/faircode/email/EntityOperation.java @@ -205,6 +205,10 @@ public class EntityOperation { EntityFolder.TRASH.equals(target.type)) autoread = true; + if (EntityFolder.JUNK.equals(source.type) && + EntityFolder.INBOX.equals(target.type)) + autoread = false; + jargs.put(1, autoread); jargs.put(3, autounflag);