Adjusted NiXSapmSum.RE_PF to count also `reject_warning's. default tip
authorPascal Volk <user@localhost.localdomain.org>
Wed, 15 Oct 2014 22:09:13 +0000
changeset 15 1a4d73017e79
parent 14 1fc9b5ed89be
Adjusted NiXSapmSum.RE_PF to count also `reject_warning's.
nixspamsum
--- a/nixspamsum	Tue Feb 08 14:23:34 2011 +0000
+++ b/nixspamsum	Wed Oct 15 22:09:13 2014 +0000
@@ -23,7 +23,7 @@
     RE_IPv4 = '(?:[\d]{1,3}\.){3}[\d]{1,3}'
     """Regular expression pattern for mail logs from Postfix"""
     RE_PF = r'''^[\w\s:-]{17,80}\spostfix\/smtpd\[[\d]{1,5}\]:\sNOQUEUE:
-                \sreject:.*blocked\susing\six.dnsbl.manitu.net;
+                \sreject(?:_warning)?:.*blocked\susing\six.dnsbl.manitu.net;
                 \sYour\se\-mail\sservice\swas\sdetected\sby\s(%s|%s)
                 \s\(NiX\sSpam\)\sas\sspamming\sat.*$''' % (RE_FQDN, RE_IPv4)