diff options
author | Erich Eckner <git@eckner.net> | 2019-10-24 08:46:57 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-24 08:46:57 +0200 |
commit | 4f23e84425958c2462c70d7aa30046562760f7a5 (patch) | |
tree | 433392ca5617adfbac1fb140d69f434fb0c33000 | |
parent | 1369245b9cf0cda468636c2853d26980b632c67e (diff) | |
download | logwatch-overrides-4f23e84425958c2462c70d7aa30046562760f7a5.tar.xz |
courier: ignore cpu time accountings for zdkim and second lines of spamassassin and greylisting
-rw-r--r-- | courier | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -403,6 +403,9 @@ while (defined($ThisLine = <STDIN>)) { ($ThisLine =~ /^Purging /) or ($ThisLine =~ /^completed,id=/) or ($ThisLine =~ /^queuelo=.*, queuehi=.*/) or + # These emit a second line which gets mangled below + ($ThisLine =~ /^CPU TIME ACCOUNTING: \S+ processed with \S+ seconds: /) or + ($ThisLine =~ /^pythonfilter spamassassin reject\S+: 554 Mail rejected - spam detected: Yes,/) or # Do we really want to ignore these? # currently i'm too lazy to include this ($ThisLine =~ /^started,ip=.*/) or ##courieresmtpd @@ -448,6 +451,9 @@ while (defined($ThisLine = <STDIN>)) { $ThisLine = $'; } if (( $Msg ) = ( $ThisLine =~ /^msg=(.*)/ )) { } + if (( $Msg ) = ($ThisLine =~ /451 4.7.1 Greylisting in action, please come back in /)) { + next; + } $ThisLine =~ s/^: //; |