mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Cleanup old local contacts
This commit is contained in:
@@ -72,6 +72,12 @@ public interface DaoContact {
|
||||
@Query("DELETE FROM contact WHERE id= :id")
|
||||
int deleteContact(long id);
|
||||
|
||||
@Query("DELETE FROM contact" +
|
||||
" WHERE last_contacted IS NOT NULL" +
|
||||
" AND last_contacted < :before" +
|
||||
" AND NOT favorite")
|
||||
int deleteContacts(long before);
|
||||
|
||||
@Query("DELETE FROM contact")
|
||||
int clearContacts();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user