Don't reset greylist timer on early retries.

This commit is contained in:
Stuart Gathman
2008-10-09 00:55:13 +00:00
parent d4cafcd435
commit 0d1f2b7f4d
2 changed files with 8 additions and 3 deletions
+3 -2
View File
@@ -52,8 +52,9 @@ class Greylist(object):
r = Record()
elif now < r.firstseen + self.greylist_time:
# still greylisted
log.debug('Reset greylist: %s',key)
r = Record()
log.debug('Early greylist: %s',key)
#r = Record()
r.lastseen = now
elif r.cnt or now < r.firstseen + self.greylist_expire:
# in greylist window or active
r.lastseen = now