Only check for non-ascii if the payload is not empty
@@ -173,6 +173,7 @@ class MIMEEval(pad.plugins.base.BasePlugin):
def extract_metadata(self, msg, payload, text, part):
content = part.get_payload(decode=True)
+ if content:
low = len(content.decode("ascii", errors="ignore"))
high = len(content)
if high>low and high*2>3:
