1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

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

This commit is contained in:
Otto Schreibke 2016-10-27 13:57:49 +02:00
parent 42cfc50bd8
commit 727a98a1e0

View File

@ -62,8 +62,11 @@ def run(connection, cursor):
error_message = error.output.decode("utf8")
# No mail is not an error
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(error_message)
finally:
cursor.execute("""
UPDATE fetch SET error=?, last_check=datetime('now')