1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 15:55:57 +00:00

Keep snoozed messages

This commit is contained in:
M66B 2020-11-02 19:38:02 +01:00
parent a8bb72aa93
commit 7809d4a4cd

View file

@ -794,7 +794,8 @@ public interface DaoMessage {
" AND NOT uid IS NULL" +
" AND (ui_seen OR :unseen)" +
" AND NOT ui_flagged" +
" AND NOT ui_browsed")
" AND NOT ui_browsed" +
" AND ui_snoozed IS NULL")
List<Long> getMessagesBefore(long folder, long before, boolean unseen);
@Query("DELETE FROM message" +
@ -803,6 +804,7 @@ public interface DaoMessage {
" AND NOT uid IS NULL" +
" AND (ui_seen OR :unseen)" +
" AND NOT ui_flagged" +
" AND (NOT ui_browsed OR stored < :before)")
" AND (NOT ui_browsed OR stored < :before)" +
" AND ui_snoozed IS NULL")
int deleteMessagesBefore(long folder, long before, boolean unseen);
}