Gmail delete all only when expunge is enabled

This commit is contained in:
M66B
2025-07-16 07:12:21 +02:00
parent bb85b7155d
commit 5c2e04cd24

View File

@@ -1863,7 +1863,7 @@ class Core {
}
try {
if (account.isGmail() && gmail_delete_all) {
if (perform_expunge && account.isGmail() && gmail_delete_all) {
EntityFolder trash = db.folder().getFolderByType(account.id, EntityFolder.TRASH);
if (trash != null) {
Map<String, Long> folders = new HashMap<>();