|
|
@ -95,9 +95,12 @@ def run(debug):
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
if __name__ == "__main__":
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
|
time.sleep(int(os.environ.get("FETCHMAIL_DELAY", 60)))
|
|
|
|
delay = int(os.environ.get("FETCHMAIL_DELAY", 60))
|
|
|
|
|
|
|
|
print("Sleeping for {} seconds".format(delay))
|
|
|
|
|
|
|
|
time.sleep(delay)
|
|
|
|
|
|
|
|
|
|
|
|
if not os.environ.get("FETCHMAIL_ENABLED", 'True') in ('True', 'true'):
|
|
|
|
if not os.environ.get("FETCHMAIL_ENABLED", 'True') in ('True', 'true'):
|
|
|
|
|
|
|
|
print("Fetchmail disabled, skipping...")
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
run(os.environ.get("DEBUG", None) == "True")
|
|
|
|
run(os.environ.get("DEBUG", None) == "True")
|
|
|
|