Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update postscreen_stats.py

  • Loading branch information...
commit 00165e0034daee0a16fe2660cacee25714a1d2d1 1 parent af91c1c
@jvehent authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  postscreen_stats.py
View
3  postscreen_stats.py
@@ -85,7 +85,6 @@ def action_filter(self,filter):
# VARIABLES
IP_REGEXP = "((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}" \
"(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))"
-POSTSCREEN_REGEXP = "/postscreen[%d{1,5}]"
IP_FILTER = "."
ACTION_FILTER = None
NOW = datetime.datetime.now()
@@ -138,7 +137,7 @@ def action_filter(self,filter):
for line in maillog:
# Get postscreen logs only
- if re.match(POSTSCREEN_REGEXP,line):
+ if "/postscreen[" in line:
# apply the user defilter filter
if re.match(IP_FILTER,line):
# parse the log line
Please sign in to comment.
Something went wrong with that request. Please try again.