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

master
b3yond 2018-10-08 15:02:15 +02:00
parent 35c3052fcd
commit 385941a2c6
1 changed files with 2 additions and 0 deletions

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):