diff --git a/app/src/main/java/eu/faircode/email/DaoMessage.java b/app/src/main/java/eu/faircode/email/DaoMessage.java index a8eaa87b2a..a98644d8c0 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -441,7 +441,8 @@ public interface DaoMessage { " AND received < :received" + " AND NOT uid IS NULL" + " AND (ui_seen OR :unseen)" + - " AND NOT ui_flagged") + " AND NOT ui_flagged" + + " AND NOT ui_browsed") List getMessagesBefore(long folder, long received, boolean unseen); @Query("DELETE FROM message" + @@ -449,6 +450,7 @@ public interface DaoMessage { " AND received < :received" + " AND NOT uid IS NULL" + " AND (ui_seen OR :unseen)" + - " AND NOT ui_flagged") + " AND NOT ui_flagged" + + " AND NOT ui_browsed") int deleteMessagesBefore(long folder, long received, boolean unseen); } \ No newline at end of file