From d3bb44feeca74f37df3a95ab51f308823e2214a7 Mon Sep 17 00:00:00 2001 From: Craig Lamparter Date: Fri, 11 Dec 2020 06:53:38 -0800 Subject: [PATCH] reset default email check delay to 60, fix a few comments --- aprsd/main.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/aprsd/main.py b/aprsd/main.py index 9442862..c281dce 100644 --- a/aprsd/main.py +++ b/aprsd/main.py @@ -224,11 +224,8 @@ def parse_email(msgid, data, server): html = None # default in case body somehow isn't set below - happened once body = "* unreadable msg received" - for ( - part - ) in ( - msg.get_payload() - ): # FIXME this uses the last text or html part in the email, want the first, reverse order somehow? + # this uses the last text or html part in the email, phone companies often put content in an attachment + for ( part) in ( msg.get_payload()): if ( part.get_content_charset() is None ): # or BREAK when we hit a text or html? @@ -427,8 +424,8 @@ def resend_email(count, fromcall): def check_email_thread(): global check_email_delay - LOG.debug("FIXME initial email delay is 10 seconds") - check_email_delay = 10 + #LOG.debug("FIXME initial email delay is 10 seconds") + check_email_delay = 60 while True: # LOG.debug("Top of check_email_thread.")