Update filters

This commit is contained in:
Stacy Brock
2021-11-03 15:22:48 -07:00
parent 63c55bb733
commit 3a1cf77ccf

View File

@@ -6,7 +6,9 @@ BLOCK_EMAIL = [
'diversity@oregonstate.edu',
'jramiro@pagerduty.com',
'info@snowflake.com',
'lisa@duo.com'
'lisa@duo.com',
'viva-noreply@microsoft.com',
'alerts@alerts.mail.hpe.com'
]
BLOCK_KEYWORDS = [
@@ -39,6 +41,7 @@ BLOCK_DOMAINS = [
'bytespeed.com',
'cmadvantage',
'customeriomail.com',
'exacttarget.com',
'freshsales.io',
'informareachmedia.com',
'mailgun.net',
@@ -110,7 +113,7 @@ def filter_message(self, message):
'ODProd Row Count Comparison',
'Oracle ODprod Sessions Older Than Today',
'UserBase.Users users deactivated due to ORG changes and termination',
'SEC_USERS Audit Update',
'Audit Update',
'ScholarUniverse to GRRS load',
'OACIS Pending Actions Notice',
'You Have OSUF Disapproved Reimbursements',
@@ -173,18 +176,6 @@ def filter_message(self, message):
message.delete()
return
# delete HP alert spam
if normalized_from == 'alerts@alerts.mail.hpe.com':
self._log_result(message, 'deleting HP alert spam')
message.delete()
return
# delete Microsoft spam
if 'viva-noreply@microsoft.com' in normalized_from:
self._log_result(message, 'deleting M$ spam')
message.delete()
return
# delete other spam
if is_in_message(normalized['BLOCK_ANNOYING'], message):
self._log_result(message, 'junking spam containing annoying content')