mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Bugfix
This commit is contained in:
@@ -199,6 +199,10 @@ class LogParser(object):
|
||||
if not self.workdict.has_key(m.group(1)):
|
||||
print "Inconsistent mail, skipping"
|
||||
continue
|
||||
if not m.group(3) in variables:
|
||||
del self.workdict[m.group(1)]
|
||||
print "Unsupported status %s, skipping" % m.group(3)
|
||||
continue
|
||||
addrfrom = re.match("([^@]+)@(.+)", self.workdict[m.group(1)]['from'])
|
||||
if addrfrom and addrfrom.group(2) in self.domains:
|
||||
self.inc_counter(addrfrom.group(2), cur_t, 'sent')
|
||||
|
||||
Reference in New Issue
Block a user