Prevent purging busy messages

This commit is contained in:
M66B
2021-05-14 19:03:15 +02:00
parent 2dd844724a
commit 1d3f496a3c
2 changed files with 26 additions and 19 deletions

View File

@@ -560,6 +560,13 @@ public interface DaoMessage {
" AND NOT uid IS NULL")
List<Long> getUids(long folder, Long received);
@Query("SELECT uid FROM message" +
" WHERE folder = :folder" +
" AND NOT ui_busy IS NULL" +
" AND ui_busy > :time" +
" AND NOT uid IS NULL")
List<Long> getBusyUids(long folder, long time);
@Query("SELECT id, uidl, msgid FROM message" +
" WHERE folder = :folder")
List<TupleUidl> getUidls(long folder);