diff options
Diffstat (limited to 'journal-watcher.py')
-rwxr-xr-x | journal-watcher.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |