ignore PGP signatures; I hope those messages get posted now #40

This commit is contained in:
b3yond 2018-10-08 15:02:15 +02:00
parent de657ba350
commit 6a8cf5c6af

View file

@ -61,6 +61,8 @@ def make_report(msg, user):
for part in msg.get_payload():
if part.get_content_type() == "text":
text.append(part.get_payload())
elif part.get_content_type() == "application/pgp-signature":
pass # ignore PGP signatures
elif part.get_content_type() == "multipart/mixed":
for p in part:
if isinstance(p, str):