From 783358f264c54f97abb5f58a7630fa1837c74bf1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 5 Aug 2020 18:09:37 +0200 Subject: [PATCH] remove mails marked as \Delete eg. by TB, which does not expunge immediatly --- mail/js/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mail/js/app.js b/mail/js/app.js index b8b81d742a..66475dba82 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -436,6 +436,12 @@ app.classes.mail = AppJS.extend( switch(pushData.acl.event) { case 'FlagsSet': + // TB (probably other MUA too) mark mail as deleted, our UI removes/expunges it immediatly + if (pushData.acl.flags.includes('\\Deleted')) + { + pushData.type = 'delete'; + return this._super.call(this, pushData); + } this.pushUpdateFlags(pushData); break; case 'FlagsClear':