mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2025-11-15 22:05:08 +00:00
annotate and deactivate logging of the poll command - issue #88
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user