mirror of
https://github.com/craigerl/aprsd.git
synced 2024-12-24 02:36:55 -05:00
reset default email check delay to 60, fix a few comments
This commit is contained in:
parent
40472ca7d6
commit
d3bb44feec
@ -224,11 +224,8 @@ def parse_email(msgid, data, server):
|
|||||||
html = None
|
html = None
|
||||||
# default in case body somehow isn't set below - happened once
|
# default in case body somehow isn't set below - happened once
|
||||||
body = "* unreadable msg received"
|
body = "* unreadable msg received"
|
||||||
for (
|
# this uses the last text or html part in the email, phone companies often put content in an attachment
|
||||||
part
|
for ( part) in ( msg.get_payload()):
|
||||||
) in (
|
|
||||||
msg.get_payload()
|
|
||||||
): # FIXME this uses the last text or html part in the email, want the first, reverse order somehow?
|
|
||||||
if (
|
if (
|
||||||
part.get_content_charset() is None
|
part.get_content_charset() is None
|
||||||
): # or BREAK when we hit a text or html?
|
): # or BREAK when we hit a text or html?
|
||||||
@ -427,8 +424,8 @@ def resend_email(count, fromcall):
|
|||||||
def check_email_thread():
|
def check_email_thread():
|
||||||
global check_email_delay
|
global check_email_delay
|
||||||
|
|
||||||
LOG.debug("FIXME initial email delay is 10 seconds")
|
#LOG.debug("FIXME initial email delay is 10 seconds")
|
||||||
check_email_delay = 10
|
check_email_delay = 60
|
||||||
while True:
|
while True:
|
||||||
# LOG.debug("Top of check_email_thread.")
|
# LOG.debug("Top of check_email_thread.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user