|
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 |
{ |
|
|