Package: greylistd
Version: 0.8.6-0.1
Severity: normal

The "singleupdate = true" option does not have the proper effect. The
following patch solves this problem:

--- greylistd_orig      2008-05-09 16:09:24.000000000 +0100
+++ greylistd   2008-05-09 15:42:31.000000000 +0100
@@ -472,19 +472,21 @@
         key = hash(" ".join(args))
         state     = listStatus(key)
 
+    if config[DATA][SINGLEUPDATE]:
+        key = hash(args[0])
+        triplet = args[0]
+    else:
+        key = hash(" ".join(args))
+        triplet = " ".join(args)
+
     if state is None:
         state = GREY
         if update and config[DATA][TRIPLETFILE] and
config[DATA][SAVETRIPLETS]:
-            newTriplets[key] = " ".join(args).lower()
+            newTriplets[key] = triplet.lower()
 
     elif ((state == GREY) and 
           (data[GREY][key][IDX_FIRST] + config[TIMEOUTS][RETRYMIN] <
now)):
         state = WHITE
-        if update and config[DATA][SINGLEUPDATE]:
-            do_delete(None, key)
-            key = hash(args[0])
-            if config[DATA][TRIPLETFILE] and
             config[DATA][SAVETRIPLETS]:
-                newTriplets[key] = args[0]
 
     if update:
         do_add([ state ], key)


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.21-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages greylistd depends on:
ii  adduser                       3.107      add and remove users and groups
ii  debconf [debconf-2.0]         1.5.21     Debian configuration management sy
ii  python                        2.5.2-1    An interactive high-level object-o

Versions of packages greylistd recommends:
ii  exim4                         4.69-5     meta-package to ease Exim MTA (v4)

-- debconf information:
  greylistd/restartexim: true
  greylistd/autoconfig_notdone:
* greylistd/autoconfig_notdone_exim4:



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to