diff --git a/email2post.py b/email2post.py index 1865acd..ee109c1 100755 --- a/email2post.py +++ b/email2post.py @@ -51,10 +51,6 @@ def parse(data, pnut, mstdn): logger.error("can't get the message, bailing out") return - logger.debug(data['Subject']) - logger.debug(body) - logger.debug(len(attachments)) - parsebody = body.split('\n') for line in parsebody: if line == "-- ": @@ -69,6 +65,10 @@ def parse(data, pnut, mstdn): logger.debug(f"Chat-Version: {deltac}") subject = "" + logger.debug(data['Subject']) + logger.debug(body) + logger.debug(len(attachments)) + if pnut: post_pnut(subject, body, attachments)