* Mail: fix moving a mail removes more then the moved mail, if push is active

This commit is contained in:
Ralf Becker 2020-08-19 17:08:42 +02:00
parent ddd8ce2202
commit a7e611af5f

View File

@ -574,6 +574,10 @@ app.classes.mail = AppJS.extend(
} }
return false; // mail nextmatch needs NOT to be refreshed return false; // mail nextmatch needs NOT to be refreshed
} }
// stop refresh, in case push has already deleted it
// (done here as it's hard to know if imap server supports push on delete
// and if both happen sometimes we "loose" a row as nextmatch removes it anyway)
if (_type === 'delete' && !this.egw.dataHasUID('mail::'+_id)) return false;
break; break;
case 'emailadmin': // update tree with given mail account _id and _type case 'emailadmin': // update tree with given mail account _id and _type