View | Details | Raw Unified | Return to bug 90361
Collapse All | Expand All

(-)Makefile (-2 / +4 lines)
Lines 3-9 Link Here
3
# Whom:			Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
3
# Whom:			Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
4
#
4
#
5
# $FreeBSD: ports/mail/dspam-devel/Makefile,v 1.41 2005/12/12 07:25:35 lawrance Exp $
5
# $FreeBSD: ports/mail/dspam-devel/Makefile,v 1.41 2005/12/12 07:25:35 lawrance Exp $
6
# $Tecnik: ports/mail/dspam-devel/Makefile,v 1.1.1.2 2005/12/13 20:43:28 itetcu Exp $
6
#
7
# $Tecnik: ports/mail/dspam-devel/Makefile,v 1.12 2005/12/13 21:09:01 itetcu Exp $
7
#
8
#
8
9
9
# Note to commiters: If don't commit a maintainer patch and as a result PKGNAME
10
# Note to commiters: If don't commit a maintainer patch and as a result PKGNAME
Lines 13-18 Link Here
13
14
14
PORTNAME=	dspam-devel
15
PORTNAME=	dspam-devel
15
PORTVERSION=	${PORTVER_MAJ}${SNAP_DATE}
16
PORTVERSION=	${PORTVER_MAJ}${SNAP_DATE}
17
PORTREVISION=	1
16
CATEGORIES=	mail
18
CATEGORIES=	mail
17
MASTER_SITES=	http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
19
MASTER_SITES=	http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
18
20
Lines 40-46 Link Here
40
FETCH_BEFORE_ARGS=	-v -o ${DISTDIR}/${PORTNAME}-${PORTVERSION}.tar.gz
42
FETCH_BEFORE_ARGS=	-v -o ${DISTDIR}/${PORTNAME}-${PORTVERSION}.tar.gz
41
.endif
43
.endif
42
44
43
_UPD_LINE_NO=	17
45
_UPD_LINE_NO=	6
44
46
45
## debug / log / admin options
47
## debug / log / admin options
46
OPTIONS=	DEBUG "Enable debugging logging" on
48
OPTIONS=	DEBUG "Enable debugging logging" on
(-)pkg-message (-2 lines)
Lines 1-5 Link Here
1
%%FreeBSD%%$FreeBSD: ports/mail/dspam-devel/pkg-message,v 1.11 2005/12/12 07:25:35 lawrance Exp $
2
%%Tecnik%%$Tecnik: ports/mail/dspam-devel/pkg-message,v 1.1.1.2 2005/12/13 20:43:28 itetcu Exp $
3
-------------------------------------------------------------------------------
1
-------------------------------------------------------------------------------
4
 Reporting problems, asking questions:
2
 Reporting problems, asking questions:
5
 - FreeBSD specific port-related problems/questions/paches: maintainer
3
 - FreeBSD specific port-related problems/questions/paches: maintainer
(-)pkg-plist (-2 lines)
Lines 1-5 Link Here
1
@comment $FreeBSD: ports/mail/dspam-devel/pkg-plist,v 1.23 2005/12/12 07:25:35 lawrance Exp $
2
@comment $Tecnik: ports/mail/dspam-devel/pkg-plist,v 1.1.1.2 2005/12/13 20:43:28 itetcu Exp $
3
%%HASH%%bin/cssstat
1
%%HASH%%bin/cssstat
4
%%HASH%%bin/csscompress
2
%%HASH%%bin/csscompress
5
%%HASH%%bin/cssclean
3
%%HASH%%bin/cssclean
(-)files/UPDATING (-3 / +7 lines)
Lines 1-6 Link Here
1
$FreeBSD: ports/mail/dspam-devel/files/UPDATING,v 1.14 2005/12/12 07:25:35 lawrance Exp $
2
$Tecnik: ports/mail/dspam-devel/files/UPDATING,v 1.1.1.2 2005/12/13 20:43:28 itetcu Exp $
3
4
This file documents some of the problems you may encounter when
1
This file documents some of the problems you may encounter when
5
upgrading dspam port.  I will try my best to minimize these disruptions,
2
upgrading dspam port.  I will try my best to minimize these disruptions,
6
but sometimes they are unavoidable.
3
but sometimes they are unavoidable.
Lines 14-19 Link Here
14
make extract;  more `find . -type f -maxdepth 2 -name UPGRADING`
11
make extract;  more `find . -type f -maxdepth 2 -name UPGRADING`
15
12
16
###########################################################################
13
###########################################################################
14
# dspam-devel-3.6.2_1 (2005-12-11 19:18)
15
#
16
17
Fix memory leak in BNR.
18
19
20
###########################################################################
17
# dspam-devel-3.6.2 (2005-12-11 21:34)
21
# dspam-devel-3.6.2 (2005-12-11 21:34)
18
#
22
#
19
23
(-)files/dspam-devel.sh.in (-1 / +1 lines)
Lines 1-7 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
# $FreeBSD: ports/mail/dspam-devel/files/dspam-devel.sh.in,v 1.3 2005/12/12 07:25:35 lawrance Exp $
2
# $FreeBSD: ports/mail/dspam-devel/files/dspam-devel.sh.in,v 1.3 2005/12/12 07:25:35 lawrance Exp $
3
# formerly $ FreeBSD: ports/mail/dspam-devel/files/dspam.rc,v 1.2 2005/02/25 03:09:26 leeym Exp $
3
# formerly $ FreeBSD: ports/mail/dspam-devel/files/dspam.rc,v 1.2 2005/02/25 03:09:26 leeym Exp $
4
# $Tecnik: ports/mail/dspam-devel/files/dspam-devel.sh.in,v 1.1.1.2 2005/12/13 20:43:28 itetcu Exp $
4
# $Tecnik: ports/mail/dspam-devel/files/dspam-devel.sh.in,v 1.3 2005/12/13 21:09:37 itetcu Exp $
5
5
6
# PROVIDE: dspam
6
# PROVIDE: dspam
7
# REQUIRE: DAEMON %%MYSQL%% %%PGSQL%% %%CLAMD%%
7
# REQUIRE: DAEMON %%MYSQL%% %%PGSQL%% %%CLAMD%%
(-)files/patch-src_libdspam.c (-21 / +23 lines)
Lines 1-23 Link Here
1
--- src/libdspam.c	2 Nov 2005 19:39:28 -0000	1.142
1
Index: dspam/src/libdspam.c
2
+++ src/libdspam.c	8 Nov 2005 15:26:44 -0000	1.143
2
===================================================================
3
@@ -672,6 +672,8 @@
3
RCS file: /usr/local/cvsroot/dspam/src/libdspam.c,v
4
     current_heading = (ds_header_t) node_nt->ptr;
4
retrieving revision 1.144
5
     if (!strcmp (current_heading->heading, "Received"))
5
retrieving revision 1.145
6
     {
6
diff -u -r1.144 -r1.145
7
+      char *data, *ptr, *tok;
7
--- src/libdspam.c	24 Nov 2005 14:09:12 -0000	1.144
8
+
8
+++ src/libdspam.c	13 Dec 2005 16:59:45 -0000	1.145
9
       // detect and skip "Received: (qmail..." lines
9
@@ -1,4 +1,4 @@
10
       if (!strncmp(current_heading->data, "(qmail", 6))
10
-/* $Id: libdspam.c,v 1.144 2005/11/24 14:09:12 jonz Exp $ */
11
       {
11
+/* $Id: libdspam.c,v 1.145 2005/12/13 16:59:45 jonz Exp $ */
12
@@ -680,9 +682,8 @@
13
         continue;
14
       }
15
 
12
 
16
-      char *data = strdup (current_heading->data);
13
 /*
17
-      char *ptr = strstr (data, "from");
14
  DSPAM
18
-      char *tok;
15
@@ -892,7 +892,9 @@
19
+      data = strdup (current_heading->data);
16
   /* Apply Bayesian Noise Reduction */
20
+      ptr = strstr (data, "from");
17
   if (CTX->flags & DSF_NOISE)
18
   {
19
-    _ds_apply_bnr(CTX, diction);
20
+    ds_diction_t p = _ds_apply_bnr(CTX, diction);
21
+    if (p) 
22
+      ds_diction_destroy(p);
23
   }
21
 
24
 
22
       if (ptr != NULL)
25
   if (CTX->flags & DSF_WHITELIST)
23
       {

Return to bug 90361