mirror of https://github.com/M66B/FairEmail.git
Auto trash/delete hidden messages
This commit is contained in:
parent
c89ba434b3
commit
77e01a24de
|
@ -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 New Issue