diff --git a/decode-spam-headers.py b/decode-spam-headers.py index ff0c538..5152736 100644 --- a/decode-spam-headers.py +++ b/decode-spam-headers.py @@ -5801,8 +5801,13 @@ def testAntispamMailboxDelivery(self): if k not in parsed.keys(): parsed[k.lower()] = v - if 'ucf' in parsed.keys() and 'dest' in parsed.keys() and parsed['ucf'] == '1' and parsed['dest'] == 'J': - result += self.logger.colored(f'- WARNING: User created a custom mail rule that moved this message to JUNK folder!\n', "red") + if 'ucf' in parsed.keys() and 'dest' in parsed.keys() and parsed['ucf'] == '1': + if parsed['dest'] == 'J': + result += self.logger.colored(f'- WARNING: User created a custom mail rule that moved this message to JUNK folder!\n', "red") + elif parsed['dest'] == 'D': + result += self.logger.colored(f'- WARNING: User created a custom mail rule that moved this message to DELETED ITEMS folder!\n', "red") + elif parsed['dest'] == 'C': + result += self.logger.colored(f'- WARNING: User created a custom mail rule that moved this message to a custom (non built-in) folder!\n', "red") for k, v in parsed.items(): elem = None