File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,12 +116,17 @@ RulesHandler.prototype.getRulesForAddress = function(address) {
116116/** handler called by terminal via osascript - l JavaScript < path> */
117117function run () {
118118 mail.downloadHtmlAttachments = false
119- const accountList = mail.accounts()
119+ const accountList = mail.accounts() // . whose ({ _match : [ObjectSpecifier().enabled, true ]})()
120120 var shouldDisplayNotification = false
121121 if (!rulesHandler.loadRulesList()) return
122122
123123 accountList.forEach(function(account){
124- if (account.enabled() === false ) return
124+ try {
125+ if (account.enabled() === false ) return
126+ } catch (e) {
127+ // account.enabled throws error on Big Sur
128+ // ActivityLog.log (e.message)
129+ }
125130
126131 const filterHandler = new SpamFilterHandler()
127132 filterHandler.account = new Account(account)
You can’t perform that action at this time.
0 commit comments