Update filters

This commit is contained in:
Stacy Brock
2023-12-14 09:27:09 -08:00
parent c2c5b372c2
commit 6e942d329f

View File

@@ -63,6 +63,7 @@ BLOCK_DOMAINS = [
'exacttarget.com',
'freshsales.io',
'ikigailabs.io',
'impetus.com',
'informareachmedia.com',
'javentechnologies.com',
'kuusakoski.com',
@@ -184,7 +185,7 @@ def filter_message(self, message):
'Changes via Tableau REST API at OSU',
'DSDBTEST',
'has been assigned to you or your queue',
'VMock CSV S3 Upload Failed',
'VMock CSV S3 Upload',
'Your Daily Digest for Oregon State University'
]]
if is_in_message(unactionable, message):
@@ -292,9 +293,14 @@ def filter_message(self, message):
move_message(message, 'Junk Email')
return
# add category to internal messages sent to DLs
if '@oregonstate.edu' in normalized_from and not get_header('To', headers):
# add 'OSU Inform' category to internal messages sent to DLs
if ('@oregonstate.edu' in normalized_from
and ((not get_header('To', headers)
and not get_header('List-Id', headers))
or ('inform-c' in ' '.join(normalized_to)))):
self._log_result(message, "adding category 'OSU Inform'")
add_category(message, 'OSU Inform')
return
# keep messages from allowed emails and domains
for good in ALLOW: