mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 07:23:03 +00:00
Auto trash/delete hidden messages
This commit is contained in:
parent
c89ba434b3
commit
77e01a24de
1 changed files with 2 additions and 2 deletions
|
@ -1008,7 +1008,7 @@ public interface DaoMessage {
|
|||
" AND (ui_seen OR :unseen)" +
|
||||
" AND NOT ui_flagged" +
|
||||
" AND stored < :sync_time" + // moved, browsed
|
||||
" AND ui_snoozed IS NULL")
|
||||
" AND (ui_snoozed IS NULL OR ui_snoozed =" + Long.MAX_VALUE+")")
|
||||
List<Long> getMessagesBefore(long folder, long sync_time, long keep_time, boolean unseen);
|
||||
|
||||
@Query("DELETE FROM message" +
|
||||
|
@ -1018,7 +1018,7 @@ public interface DaoMessage {
|
|||
" AND (ui_seen OR :unseen)" +
|
||||
" AND NOT ui_flagged" +
|
||||
" AND stored < :sync_time" + // moved, browsed
|
||||
" AND ui_snoozed IS NULL")
|
||||
" AND (ui_snoozed IS NULL OR ui_snoozed = " + Long.MAX_VALUE + ")")
|
||||
int deleteMessagesBefore(long folder, long sync_time, long keep_time, boolean unseen);
|
||||
|
||||
@Transaction
|
||||
|
|
Loading…
Reference in a new issue