From 3fc505b52e84004c1b663a48a19f8968bc21b47a Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 15 Jan 2020 08:02:50 +0100 Subject: [PATCH] Prioritize headers operation --- app/src/main/java/eu/faircode/email/DaoOperation.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DaoOperation.java b/app/src/main/java/eu/faircode/email/DaoOperation.java index 536633d6e0..a6c45e70f8 100644 --- a/app/src/main/java/eu/faircode/email/DaoOperation.java +++ b/app/src/main/java/eu/faircode/email/DaoOperation.java @@ -29,8 +29,9 @@ import java.util.List; @Dao public interface DaoOperation { String priority = "CASE" + - " WHEN operation.name = '" + EntityOperation.BODY + "' THEN -2" + - " WHEN operation.name = '" + EntityOperation.ATTACHMENT + "' THEN -1" + + " WHEN operation.name = '" + EntityOperation.BODY + "' THEN -3" + + " WHEN operation.name = '" + EntityOperation.ATTACHMENT + "' THEN -2" + + " WHEN operation.name = '" + EntityOperation.HEADERS + "' THEN -1" + " WHEN operation.name = '" + EntityOperation.SYNC + "' THEN" + " CASE WHEN folder.account IS NULL THEN -1 ELSE 1 END" + // outbox " ELSE 0" +