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:
parent
a8bb72aa93
commit
7809d4a4cd
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue