Clear raw message files if disabled

This commit is contained in:
M66B
2022-01-17 10:37:35 +01:00
parent edb0023fad
commit f4bb651fd9
2 changed files with 12 additions and 1 deletions

View File

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