This commit is contained in:
tonio
2009-11-03 16:42:18 +01:00
parent 8f72f5398e
commit 2158d5514a
+4
View File
@@ -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')