summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-09-27 12:38:40 +0200
committerErich Eckner <git@eckner.net>2021-09-27 12:38:40 +0200
commit586d255223c9dd547c216f0fabd0572f5de6e6fd (patch)
tree1d5474d4ee5a98aa5114071199c0a984d593bf0f
parentf418bf650c401e8c0cde0bd1c7e81e7eb1dbfe3b (diff)
downloadjournal-watcher-master.tar.xz
journal-watcher.py: make regex more relaxedHEADmaster
-rwxr-xr-xjournal-watcher.py2
1 files changed, 1 insertions, 1 deletions
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.*')
}