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')

View File

@@ -1,20 +1,20 @@
backports.zoneinfo==0.2.1
beautifulsoup4==4.11.1
beautifulsoup4==4.12.2
certifi==2022.12.7
charset-normalizer==3.0.1
charset-normalizer==3.1.0
idna==3.4
O365==2.0.25
O365==2.0.26
oauthlib==3.2.2
pendulum==2.1.2
python-dateutil==2.8.2
pytz==2022.7.1
pytz==2023.3
pytz-deprecation-shim==0.1.0.post0
pytzdata==2020.1
requests==2.28.2
requests-oauthlib==1.3.1
six==1.16.0
soupsieve==2.3.2.post1
soupsieve==2.4
stringcase==1.2.0
tzdata==2022.7
tzlocal==4.2
urllib3==1.26.14
tzdata==2023.3
tzlocal==4.3
urllib3==1.26.15