|
|
|
@ -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
|
|
|
|
|