From d90aa43945a304efdf632ace329c2b8c9aea2377 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 1 Nov 2016 11:38:07 -0200 Subject: [feat] change update period with environment variable --- src/leap/bitmask/mail/incoming/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/leap/bitmask/mail/incoming/service.py b/src/leap/bitmask/mail/incoming/service.py index 38a2290..54064b8 100644 --- a/src/leap/bitmask/mail/incoming/service.py +++ b/src/leap/bitmask/mail/incoming/service.py @@ -18,6 +18,7 @@ Incoming mail fetcher. """ import copy +import os import shlex import time import warnings @@ -58,7 +59,7 @@ PGP_END = "-----END PGP MESSAGE-----" # The period between succesive checks of the incoming mail # queue (in seconds) -INCOMING_CHECK_PERIOD = 60 +INCOMING_CHECK_PERIOD = int(os.environ.get('INCOMING_CHECK_PERIOD', 60)) class MalformedMessage(Exception): -- cgit v1.2.3