Wrong regexp fixed.

see #516
This commit is contained in:
Antoine Nguyen
2014-01-24 10:19:43 +01:00
parent 772bb12c87
commit 6a0e82355e
@@ -280,10 +280,9 @@ class LogParser(object):
return
(line_id, line_log) = m.groups()
if line_id == "NOQUEUE":
self._dprint("NOQUEUE found")
addrto = re.search("to=<([^@]+)@([>]+)>", line_log)
if addrto and addrto.group(2) in self.domains:
self.inc_counter(addrto.group(2), 'reject')
m = re.match("reject: .*from=<.*> to=<[^@]+@([^>]+)>", line_log)
if addrto and addrto.group(1) in self.domains:
self.inc_counter(addrto.group(1), 'reject')
return
m = re.search("message-id=<([^>]*)>", line_log)
if m is not None: