From 19b8cb25a87b178f73082e390f2aef85c83fc47e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 6 Aug 2020 14:46:28 +0200 Subject: [PATCH] ignore MessageAppend all together for all new message notifications, as Sieve moved mails still use MessageNew --- mail/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index c7c59b67db..6800bf09f7 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -425,9 +425,9 @@ app.classes.mail = AppJS.extend( } // notify user a new mail arrived - if (pushData.type === 'add') + if (pushData.type === 'add' && pushData.acl.event === 'MessageNew') { - // never notify for Trash, Junk, Drafts or Sent folder + // never notify for Trash, Junk, Drafts or Sent folder (user might use Sieve to move mails there!) if (pushData.acl.folder.match(/^(INBOX.)?(Trash|Spam|Junk|Drafts|Sent)$/)) return; // increment notification counter on (closed) mail tab let framework = egw_getFramework();