mirror of
https://github.com/tutao/tutanota.git
synced 2025-12-08 06:09:50 +00:00
check for errors in mail when evaluating inbox rules.
This commit is contained in:
parent
b9cafd915f
commit
e5d2d817bf
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ export function getInboxRuleTypeName(type: string): string {
|
|||
* @returns true if a rule matches otherwise false
|
||||
*/
|
||||
export function findAndApplyMatchingRule(mailboxDetail: MailboxDetail, mail: Mail): Promise<boolean> {
|
||||
if (!mail.unread || !isInboxList(mailboxDetail, mail._id[0]) || !logins.getUserController().isPremiumAccount()) {
|
||||
if (mail._errors || !mail.unread || !isInboxList(mailboxDetail, mail._id[0]) || !logins.getUserController().isPremiumAccount()) {
|
||||
return Promise.resolve(false)
|
||||
}
|
||||
return _findMatchingRule(mail).then(inboxRule => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue