mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Added option to auto delete old trashed messages
This commit is contained in:
@@ -421,6 +421,13 @@ public interface DaoMessage {
|
||||
" AND operation.name = '" + EntityOperation.ADD + "')")
|
||||
int deleteOrphans(long folder);
|
||||
|
||||
@Query("SELECT id FROM message" +
|
||||
" WHERE folder = :folder" +
|
||||
" AND received < :received" +
|
||||
" AND NOT uid IS NULL" +
|
||||
" AND NOT ui_flagged")
|
||||
List<Long> getMessagesBefore(long folder, long received);
|
||||
|
||||
@Query("DELETE FROM message" +
|
||||
" WHERE folder = :folder" +
|
||||
" AND received < :received" +
|
||||
|
||||
Reference in New Issue
Block a user