Update filters & package requirements

This commit is contained in:
Stacy Brock
2022-06-29 11:44:09 -07:00
parent b51daa4d63
commit e7256adf76
2 changed files with 6 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ BLOCK_KEYWORDS = [
'prefer not to receive',
'prefer not to see',
'rather not receive',
'remove from this list',
'Samsung SDS America',
'sidekickopen',
'subscription preferences',
@@ -246,7 +247,8 @@ def filter_message(self, message):
# junk known spam headers
if (get_header('X-Spam-Flag' == 'YES', headers)
or int(get_header('X-MS-Exchange-Organization-SCL', headers)) >= 5):
or int(get_header('X-MS-Exchange-Organization-SCL', headers)) >= 5
or get_header('X-Mailgun-List-Address', headers)):
self._log_result(message, 'junking spam with known header')
move_message(message, 'Junk Email')
return