mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Prevent purging busy messages
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user