From b5454a57db6652153d462561218e9c2c578182f8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 18 Apr 2021 23:02:01 +0200 Subject: journal-watcher.py: new log line format(?) --- journal-watcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/journal-watcher.py b/journal-watcher.py index 91b9c34..6e2be60 100755 --- a/journal-watcher.py +++ b/journal-watcher.py @@ -10,7 +10,8 @@ j = journal.Reader() j.this_boot() j.add_match(_SYSTEMD_UNIT='courier-esmtpd.service') -regex = re.compile('.*msg="534 SIZE=Message too big\.",cmd: MAIL FROM:[^<]*<([^>]+)> SIZE=([0-9]+)') +# regex = re.compile('.*msg="534 SIZE=Message too big\.",cmd: MAIL FROM:[^<]*<([^>]+)> SIZE=([0-9]+)') +regex = re.compile('.*,from=[^<]*<([^>]+)>: 523 Message length \(([0-9]+) bytes\) exceeds administrative limit.*') while True: item=j.get_next() -- cgit v1.2.3-54-g00ecf