From 6a8cf5c6af9531adf25c716f8eca52d13b531044 Mon Sep 17 00:00:00 2001 From: b3yond Date: Mon, 8 Oct 2018 15:02:15 +0200 Subject: [PATCH] ignore PGP signatures; I hope those messages get posted now #40 --- active_bots/mailbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/active_bots/mailbot.py b/active_bots/mailbot.py index 1c54088..3757460 100644 --- a/active_bots/mailbot.py +++ b/active_bots/mailbot.py @@ -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):