From 81fdd8dfe0441b200f9f65545ad14c2e02590bb9 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 26 Jul 2020 19:58:13 +0200 Subject: [PATCH] Added purge folder --- FAQ.md | 1 + .../java/eu/faircode/email/AdapterFolder.java | 10 ++-- app/src/main/java/eu/faircode/email/Core.java | 51 ++++++++++++++++++- .../java/eu/faircode/email/DaoMessage.java | 5 ++ .../eu/faircode/email/EntityOperation.java | 1 + .../eu/faircode/email/FragmentFolders.java | 14 ++++- .../eu/faircode/email/FragmentMessages.java | 16 +++--- 7 files changed, 82 insertions(+), 16 deletions(-) diff --git a/FAQ.md b/FAQ.md index 1c00dd7ec8..9e99f823a0 100644 --- a/FAQ.md +++ b/FAQ.md @@ -388,6 +388,7 @@ The low priority status bar notification shows the number of pending operations, * *attachment*: download attachment * *sync*: synchronize local and remote messages * *subscribe*: subscribe to remote folder +* *purge*: delete all messages from remote folder * *send*: send message * *exists*: check if message exists * *rule*: execute rule on body text diff --git a/app/src/main/java/eu/faircode/email/AdapterFolder.java b/app/src/main/java/eu/faircode/email/AdapterFolder.java index d5ab8e486f..9c0d030f8e 100644 --- a/app/src/main/java/eu/faircode/email/AdapterFolder.java +++ b/app/src/main/java/eu/faircode/email/AdapterFolder.java @@ -475,13 +475,13 @@ public class AdapterFolder extends RecyclerView.Adapter