summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/mail/incoming/service.py
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2016-11-01 11:38:07 -0200
committerdrebs <drebs@riseup.net>2016-11-06 14:20:49 -0200
commitd90aa43945a304efdf632ace329c2b8c9aea2377 (patch)
treeef136b0df7e43ae872c214f68c78275aebf1d2c6 /src/leap/bitmask/mail/incoming/service.py
parent68ecf00553bb870e6a2026e3672f0ac3268f274b (diff)
[feat] change update period with environment variable
Diffstat (limited to 'src/leap/bitmask/mail/incoming/service.py')
-rw-r--r--src/leap/bitmask/mail/incoming/service.py3
1 files changed, 2 insertions, 1 deletions
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):