diff --git a/filter-rules.py b/filter-rules.py index b589150..1bb97e3 100644 --- a/filter-rules.py +++ b/filter-rules.py @@ -47,7 +47,10 @@ BLOCK_DOMAINS = [ 'mktomail.com', 'norstar.net', 'pphosted.com', - 'sparkpostmail.com' + 'sparkpostmail.com', + 'thesourcery.com', + 'trustedmailservers.com', + 'znsrc.com' ] BLOCK_ANNOYING = [ @@ -59,6 +62,7 @@ BLOCK_ANNOYING = [ 'giving tuesday', 'hardship leave donations needed', 'register to vote' + 'service desk survey request', 'special election', 'voter registration' ] @@ -81,7 +85,7 @@ ALLOW = [ 'busyconf.com', 'support@githubsupport.com', 'microsoft.com', - 'pmoxon@denodo.com' + 'docusign.net' ] normalized = {} @@ -96,14 +100,17 @@ def filter_message(self, message): automated_sources = [ 'coresys@lists.oregonstate.edu', 'iar.ref@oregonstate.edu', - 'Scholarship System' + 'iar.systems-team@oregonstate.edu' ] if bool([x for x in automated_sources if(x in normalized_from)]): unactionable = [x.lower() for x in [ 'DWPRODRAW Verification', 'Job Monitor', 'Operating Ledger - OK', + 'ODProd Row Count Comparison', 'Oracle ODprod Sessions Older Than Today', + 'UserBase.Users users deactivated due to ORG changes and termination', + 'SEC_USERS Audit Update', 'ScholarUniverse to GRRS load', 'OACIS Pending Actions Notice', 'You Have OSUF Disapproved Reimbursements', @@ -117,8 +124,7 @@ def filter_message(self, message): 'Direct Payment Request', 'Status Change in your Detail Code Request', 'loaded into the Index Reimbursement System', - 'UserBase.Users users deactivated due to ORG changes and termination', - 'SEC_USERS Audit Update' + 'JV required for' ]] if is_in_message(unactionable, message): self._log_result(message, 'moving to unactionable')