Cleanup headers of IMAP accounts

This commit is contained in:
M66B
2020-06-28 14:12:11 +02:00
parent f92ea9296a
commit 0de66f8bf8
2 changed files with 9 additions and 0 deletions

View File

@@ -735,6 +735,11 @@ public interface DaoMessage {
@Query("UPDATE message SET notifying = 0")
int clearNotifyingMessages();
@Query("UPDATE message SET headers = NULL" +
" WHERE headers IS NOT NULL" +
" AND account IN (SELECT id FROM account WHERE pop = " + EntityAccount.TYPE_IMAP + ")")
int clearMessageHeaders();
@Query("UPDATE message SET fts = 0")
int resetFts();