Accidentally removed a needed patch in the purge a few days ago. Resolves bug #108900
authorTom Martin <slarti@gentoo.org>
Sat, 15 Oct 2005 08:55:38 +0000 (08:55 +0000)
committerTom Martin <slarti@gentoo.org>
Sat, 15 Oct 2005 08:55:38 +0000 (08:55 +0000)
Package-Manager: portage-2.0.53_rc5

mail-filter/gld/ChangeLog
mail-filter/gld/Manifest
mail-filter/gld/files/gld-1.5.2-mxgrey-fix.patch [new file with mode: 0644]

index 59965e7f949c49e08397809a5e1c2eab1a30b2c7..2160a84ca9e8c10d99a6afc3f61e68751e819d56 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for mail-filter/gld
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/gld/ChangeLog,v 1.25 2005/10/08 08:36:12 slarti Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/gld/ChangeLog,v 1.26 2005/10/15 08:55:38 slarti Exp $
+
+  15 Oct 2005; Tom Martin <slarti@gentoo.org>
+  +files/gld-1.5.2-mxgrey-fix.patch:
+  Accidentally removed a needed patch in the purge a few days ago. Resolves
+  bug #108900.
 
 *gld-1.6 (08 Oct 2005)
 
index 148ea967132b4acedbf78b81cd5b77ac80d5efd3..ad929a87023331d218bed62029d3aec49db34cc1 100644 (file)
@@ -1,10 +1,11 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 eeddbde7d4f88edd9d2a51e7c0a9b972 ChangeLog 4123
+MD5 2912126307110b5621bb18f47979433e ChangeLog 4298
 MD5 96d50f09283d0a87235b23ce0795499e files/Makefile.in 980
 MD5 63658f0d53451dbb79e4330fd997bfab files/digest-gld-1.5.2 57
 MD5 f91281c6461e403a77e5351e89e398be files/digest-gld-1.6 55
+MD5 135d0ec2459d5f7c3bbeb4cea3381364 files/gld-1.5.2-mxgrey-fix.patch 1702
 MD5 4e2b779070d26c7675574fe2420541b8 files/gld.rc 544
 MD5 92553e000dd0a23d31042352b053cbdf gld-1.5.2.ebuild 1562
 MD5 c82f4d42b6f4cb1d4a64e6d031b018d6 gld-1.6.ebuild 1554
@@ -12,7 +13,7 @@ MD5 8a1c6c5f4c13a4109f6f4198fdd1874b metadata.xml 223
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (GNU/Linux)
 
-iD8DBQFDR4USCHk4+ZoBpvsRAjtjAJ9xCMi4GdPDt6fz7tvB/BKjYnHK5wCeM3FD
-bNnNviQ5yoO7WLSioTRmOWY=
-=qQHN
+iD8DBQFDUMQgCHk4+ZoBpvsRAroZAJ9GFnBVmxGhUw5ezOv2tU0btvwSdACbBsxa
+9Xrhn9FavCqZ0qfXMsRqHfE=
+=i7Hj
 -----END PGP SIGNATURE-----
diff --git a/mail-filter/gld/files/gld-1.5.2-mxgrey-fix.patch b/mail-filter/gld/files/gld-1.5.2-mxgrey-fix.patch
new file mode 100644 (file)
index 0000000..4ec6be7
--- /dev/null
@@ -0,0 +1,42 @@
+--- gld-1.5.2/greylist.c.orig  2005-08-17 00:44:06.000000000 +0200
++++ gld-1.5.2/greylist.c       2005-08-17 00:40:32.000000000 +0200
+@@ -181,10 +181,29 @@
+ 
+       if(conf->update==1)
+               {
+-              if(conf->lightd==1 && fnotdomain==1)
+-                      snprintf(query,sizeof(query)-1,"update greylist set last=%d,n=n+1 where ip='%s' and sender='%s' and 
+recipient='%s'",ts,ip,osender,orecipient);
+-
+-              snprintf(query,sizeof(query)-1,"update greylist set last=%d,n=n+1 where ip='%s' and sender='%s' and 
+recipient='%s'",ts,ip,sender,recipient);
++
++              if(ts-n>conf->mini)
++                      {
++                      if(conf->lightd==1 && fnotdomain==1)
++                              snprintf(query,sizeof(query)-1,"update greylist set last=%d,n=n+1 where ip='%s' and sender='%s' and 
+recipient='%s'",ts,ip,osender,orecipient);
++
++                      snprintf(query,sizeof(query)-1,"update greylist set last=%d,n=n+1 where ip='%s' and sender='%s' and 
+recipient='%s'",ts,ip,sender,recipient);
++              }
++              else
++              {
++                      //
++                      // We have NOT reached the greylist-timeout, so we do NOT increase the message-counter (SQL-field n),
++                      // because otherwise we will braek the MXGREY-option.
++                      // In fact this means that the THIRD retry will immidiately pass the greylist, as mxgrey checks only for ip and (n>1).
++                      //
++                      // 2005-08-16   martin@it4linux.de
++                      // 
++
++                      if(conf->lightd==1 && fnotdomain==1)
++                              snprintf(query,sizeof(query)-1,"update greylist set last=%d where ip='%s' and sender='%s' and 
+recipient='%s'",ts,ip,osender,orecipient);
++
++                      snprintf(query,sizeof(query)-1,"update greylist set last=%d where ip='%s' and sender='%s' and 
+recipient='%s'",ts,ip,sender,recipient);
++              }
+ 
+               SQLQuery(query);
+               if(conf->debug==1) printf("%d: Query=(%s)\n",pid,query);