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