From 586d255223c9dd547c216f0fabd0572f5de6e6fd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 27 Sep 2021 12:38:40 +0200 Subject: journal-watcher.py: make regex more relaxed --- journal-watcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/journal-watcher.py b/journal-watcher.py index df1227e..e17c3bb 100755 --- a/journal-watcher.py +++ b/journal-watcher.py @@ -11,7 +11,7 @@ j.this_boot() j.add_match(_SYSTEMD_UNIT='courier-esmtpd.service') regexes = { - re.compile('.*msg="534 SIZE=Message too big\.",cmd: MAIL FROM:[^<]*<([^>]+)> SIZE=([0-9]+)'), + re.compile('.*msg="534 SIZE=Message too big\.",cmd: MAIL FROM:[^<]*<([^>]+)> SIZE=([0-9]+).*'), re.compile('.*,from=[^<]*<([^>]+)>: 523 Message length \(([0-9]+) bytes\) exceeds administrative limit.*') } -- cgit v1.2.3-70-g09d2