Update filters
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user