pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc Update mail/dspam to 3.2.1.
details: https://anonhg.NetBSD.org/pkgsrc/rev/2e900d8f85e1
branches: trunk
changeset: 482714:2e900d8f85e1
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Mon Nov 01 23:15:15 2004 +0000
description:
Update mail/dspam to 3.2.1.
Version 3.2.1 is a maintenance release and contains bugfixes to v3.2.0 only.
BUGFIX: PGP Messages cause pop3filter to hang
BUGFIX: Invalid read of free()'d memory caused by parsing multi-line headers
BUGFIX: SQLite driver fails to call PRAMA specified in dspam.conf
BUGFIX: MySQL generates DUPLICATE KEY errors on simultaneous inserts
BUGFIX: Memory leaks in dspam_clean
BUGFIX: dspam_clean crashes with SQLite driver
BUGFIX: Signatures include leading whitespace when in loose match
BUGFIX: Some versions of PostgreSQL don't support PQfreemem()
BUGFIX: Memory mishandling in PostgreSQL driver
BUGFIX: Message delimiters mangled when processing a PGP signed message
BUGFIX: --with-delivery-agent configure option no longer present
BUGFIX: Default log directory /var/log not writable by some installs
BUGFIX: Man page installation doesn't prefix with $(DESTDIR)
BUGFIX: Emails ending with http:// cause invalid memory read
diffstat:
doc/CHANGES | 3 +-
mail/dspam/Makefile | 5 +-
mail/dspam/distinfo | 7 +-
mail/dspam/patches/patch-ab | 109 --------------------------------------------
4 files changed, 7 insertions(+), 117 deletions(-)
diffs (153 lines):
diff -r be6054504da3 -r 2e900d8f85e1 doc/CHANGES
--- a/doc/CHANGES Mon Nov 01 23:08:44 2004 +0000
+++ b/doc/CHANGES Mon Nov 01 23:15:15 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.7648 2004/11/01 23:08:44 xtraeme Exp $
+$NetBSD: CHANGES,v 1.7649 2004/11/01 23:15:15 xtraeme Exp $
Changes to the packages collection and infrastructure in 2004:
@@ -5011,3 +5011,4 @@
Added php5-mysqli-5.0.2 [jdolecek 2004-11-01]
Updated swapd to 1.0.2 [xtraeme 2004-11-01]
Updated clamsmtp to 1.1 [xtraeme 2004-11-01]
+ Updated dspam to 3.2.1 [xtraeme 2004-11-01]
diff -r be6054504da3 -r 2e900d8f85e1 mail/dspam/Makefile
--- a/mail/dspam/Makefile Mon Nov 01 23:08:44 2004 +0000
+++ b/mail/dspam/Makefile Mon Nov 01 23:15:15 2004 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2004/10/28 10:12:47 adrianp Exp $
+# $NetBSD: Makefile,v 1.16 2004/11/01 23:15:16 xtraeme Exp $
-DISTNAME= dspam-3.2.0
-PKGREVISION= 1
+DISTNAME= dspam-3.2.1
CATEGORIES= mail
MASTER_SITES= http://www.nuclearelephant.com/projects/dspam/sources/
diff -r be6054504da3 -r 2e900d8f85e1 mail/dspam/distinfo
--- a/mail/dspam/distinfo Mon Nov 01 23:08:44 2004 +0000
+++ b/mail/dspam/distinfo Mon Nov 01 23:15:15 2004 +0000
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.5 2004/10/28 06:03:18 xtraeme Exp $
+$NetBSD: distinfo,v 1.6 2004/11/01 23:15:16 xtraeme Exp $
-SHA1 (dspam-3.2.0.tar.gz) = 45dd9addddf42bf8e891c3f35fd9009f4fae9a5f
-Size (dspam-3.2.0.tar.gz) = 617716 bytes
+SHA1 (dspam-3.2.1.tar.gz) = dfbd8ff5b74e0962e95d7eaba21c77ce84540ffc
+Size (dspam-3.2.1.tar.gz) = 618780 bytes
SHA1 (patch-aa) = 0f5ca6fc4c03ea0b73ccd1214f047fec6ffe4cb3
-SHA1 (patch-ab) = fc4a308ddce93b7fa9248bf55e5936895f3de0c2
diff -r be6054504da3 -r 2e900d8f85e1 mail/dspam/patches/patch-ab
--- a/mail/dspam/patches/patch-ab Mon Nov 01 23:08:44 2004 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,109 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2004/10/27 23:27:00 xtraeme Exp $
-
-Fix for MySQL 4.1.x users:
-
-http://dspam.nuclearelephant.com/dspam-users/5709.html
-
---- mysql_drv.c.orig 2004-10-28 01:01:32.000000000 +0200
-+++ mysql_drv.c 2004-10-28 01:07:44.000000000 +0200
-@@ -512,10 +512,10 @@
- struct _ds_spam_stat stat, stat2;
- struct lht_node *node_lht;
- struct lht_c c_lht;
-- buffer *query, *insert;
-+ buffer *query;
- char scratch[1024];
- struct passwd *p;
-- int update_one = 0, insert_one = 0;
-+ int update_one = 0;
-
- if (s->dbh == NULL)
- {
-@@ -546,14 +546,6 @@
- return EUNKNOWN;
- }
-
-- insert = buffer_create(NULL);
-- if (insert == NULL)
-- {
-- buffer_destroy(query);
-- LOG (LOG_CRIT, ERROR_MEM_ALLOC);
-- return EUNKNOWN;
-- }
--
- if (s->control_token == 0)
- {
- node_lht = c_lht_first (freq, &c_lht);
-@@ -585,9 +577,6 @@
-
- buffer_cat (query, scratch);
-
-- buffer_copy (insert, "insert into dspam_token_data(uid, token, spam_hits, "
-- "innocent_hits, last_hit) values");
--
- node_lht = c_lht_first (freq, &c_lht);
- while (node_lht != NULL)
- {
-@@ -605,7 +594,7 @@
-
- if (stat2.disk != 'Y')
- {
-- char ins[1024];
-+ char insert[1024];
-
- /* If we're processing a message with a MERGED group, assign it based on
- an empty count and not the current count (since the current count
-@@ -615,25 +604,27 @@
- on the actual count (so that tools like dspam_merge don't break) */
-
- if (CTX->flags & DSF_MERGED) {
-- snprintf (ins, sizeof (ins),
-- "%s(%d, '%llu', %d, %d, current_date())",
-- (insert_one) ? ", " : "",
-+ snprintf (insert, sizeof (insert),
-+ "insert into dspam_token_data(uid, token, spam_hits, "
-+ "innocent_hits, last_hit) values(%d, '%llu', %d, %d, "
-+ "current_date())",
- p->pw_uid,
- node_lht->key,
- stat.spam_hits > s->control_sh ? 1 : 0,
- stat.innocent_hits > s->control_ih ? 1 : 0);
- } else {
-- snprintf (ins, sizeof (ins),
-- "%s(%d, '%llu', %ld, %ld, current_date())",
-- (insert_one) ? ", " : "",
-+ snprintf(insert, sizeof (insert),
-+ "insert into dspam_token_data(uid, token, spam_hits, "
-+ "innocent_hits, last_hit) values(%d, '%llu', %ld, %ld, "
-+ "current_date())",
- p->pw_uid,
- node_lht->key,
- stat2.spam_hits,
- stat2.innocent_hits);
- }
-
-- insert_one = 1;
-- buffer_cat(insert, ins);
-+ if (MYSQL_RUN_QUERY (s->dbh, insert))
-+ stat2.disk = 'Y';
- }
-
- if (stat2.disk == 'Y')
-@@ -675,17 +666,6 @@
- }
- }
-
-- if (insert_one)
-- {
-- if (MYSQL_RUN_QUERY (s->dbh, insert->data))
-- {
-- _mysql_drv_query_error (mysql_error (s->dbh), insert->data);
-- buffer_destroy(insert);
-- return EFAILURE;
-- }
-- }
--
-- buffer_destroy (insert);
- buffer_destroy (query);
- return 0;
- }
Home |
Main Index |
Thread Index |
Old Index