remove mails marked as \Delete eg. by TB, which does not expunge immediatly

This commit is contained in:
Ralf Becker 2020-08-05 18:09:37 +02:00
parent e3cf9b7aa5
commit 2ea0792600

View File

@ -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':