Update filters

This commit is contained in:
Stacy Brock
2023-04-11 09:43:10 -07:00
parent 508e12c715
commit df0c3b10d5
2 changed files with 15 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ BLOCK_EMAIL = [
'alerts@alerts.mail.hpe.com',
'noreply-marketplace@zoom.us',
'equal.opportunity@oregonstate.edu',
'sv_uit_voicemail_cxe@oregonstateuniversity.onmicrosoft.com'
'sv_uit_voicemail_cxe@oregonstateuniversity.onmicrosoft.com',
]
BLOCK_KEYWORDS = [
@@ -229,6 +229,12 @@ def filter_message(self, message):
message.delete()
return
# filter quarantine spam
if 'quarantine@messaging.microsoft.com' in normalized_from:
self._log_result(message, 'moving to unactionable')
move_message(message, 'unactionable')
return
# delete conference spam
if 'brocks+conf@onid.oregonstate.edu' in normalized_to:
self._log_result(message, 'deleting conference spam')