diff --git a/decode-spam-headers.py b/decode-spam-headers.py index 926978f..2c5a473 100644 --- a/decode-spam-headers.py +++ b/decode-spam-headers.py @@ -1778,10 +1778,10 @@ class SMTPHeadersAnalysis: try: out = base64.b64decode(value) except: - try: - out = base64.b64decode(value + b'=' * (-len(value) % 4)) + try: + out = base64.b64decode(value + b'=' * (-len(value) % 4)) except: - out = value + out = value if enc: out = out.decode(errors = 'ignore')