mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
ignore MessageAppend all together for all new message notifications, as Sieve moved mails still use MessageNew
This commit is contained in:
parent
879943f3d2
commit
19b8cb25a8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user