summaryrefslogtreecommitdiffstats
path: root/peekaboo/config.py
diff options
context:
space:
mode:
authorMichael Weiser <michael.weiser@gmx.de>2019-02-14 16:28:28 +0000
committerMichael Weiser <michael.weiser@gmx.de>2019-02-14 16:35:53 +0000
commit7412e890c0207d8c25568f7cad25f9358e7fea82 (patch)
tree8bd12fbd40a964c511270e625a4365722574fef2 /peekaboo/config.py
parent005a4e174d04a107b5c93b58d613edc0bfff1f67 (diff)
Make job hash regex greedy
Since we only ever want to extract an identifier from the input file path, the rest of the regexp only needs to provide anchors inside the path to identify the job hash. So it can be greedy which allows it to be shorter and less error-prone in configuration.
Diffstat (limited to 'peekaboo/config.py')
-rw-r--r--peekaboo/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/peekaboo/config.py b/peekaboo/config.py
index 903b565..f921846 100644
--- a/peekaboo/config.py
+++ b/peekaboo/config.py
@@ -79,7 +79,7 @@ class PeekabooConfig(object): # pylint: disable=too-many-instance-attributes
self.interpreter = '/usr/bin/python -u'
self.worker_count = 3
self.sample_base_dir = '/tmp'
- self.job_hash_regex = '/var/lib/amavis/tmp/([^/]+)/parts.*'
+ self.job_hash_regex = '/amavis/tmp/([^/]+)/parts/'
self.use_debug_module = False
self.keep_mail_data = False
self.db_url = 'sqlite:////var/lib/peekaboo/peekaboo.db'