From c32a9ea5d7fb6c37423c22c6374a0c992e6db2ec Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 19 Aug 2020 17:08:42 +0200 Subject: [PATCH] * Mail: fix moving a mail removes more then the moved mail, if push is active --- mail/js/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mail/js/app.js b/mail/js/app.js index 3fbe4ab701..d35fb8e2ad 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -574,6 +574,10 @@ app.classes.mail = AppJS.extend( } 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; case 'emailadmin': // update tree with given mail account _id and _type