annotate and deactivate logging of the poll command - issue #88

master
Otto Schreibke 8 years ago
parent 42cfc50bd8
commit 727a98a1e0

@ -62,8 +62,11 @@ def run(connection, cursor):
error_message = error.output.decode("utf8") error_message = error.output.decode("utf8")
# No mail is not an error # No mail is not an error
if not (error_message.startswith("fetchmail: No mail")): if not (error_message.startswith("fetchmail: No mail")):
# activate the next statement to log the poll command
# Warning: the poll command contains the mailbox password
# in clear text
#print(fetchmailrc)
print(fetchmailrc) print(fetchmailrc)
print(error_message)
finally: finally:
cursor.execute(""" cursor.execute("""
UPDATE fetch SET error=?, last_check=datetime('now') UPDATE fetch SET error=?, last_check=datetime('now')

Loading…
Cancel
Save