diff options
author | mnag <mnag@FreeBSD.org> | 2005-11-11 20:24:37 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2005-11-11 20:24:37 +0800 |
commit | 75501ff1efd4155440832223cd3d3f0209e605fd (patch) | |
tree | 0b70dffa61cfcea82d2af0584d81330be46ebf66 /mail/dspam-devel/files | |
parent | 4d03b6e613cb46e25cfbc2f98f69fa4e5a6781f4 (diff) | |
download | freebsd-ports-gnome-75501ff1efd4155440832223cd3d3f0209e605fd.tar.gz freebsd-ports-gnome-75501ff1efd4155440832223cd3d3f0209e605fd.tar.zst freebsd-ports-gnome-75501ff1efd4155440832223cd3d3f0209e605fd.zip |
Update to 3.6.1
Add TRAIN_SCRIPT in OPTIONS
Use USE_DBD and USE_SQLITE
Add SHA256
PR: 88688
Submitted by: "Ion-Mihai "IOnut" Tetcu" <itetcu@people.tecnik93.com> (maintainer)
Diffstat (limited to 'mail/dspam-devel/files')
-rw-r--r-- | mail/dspam-devel/files/UPDATING | 23 | ||||
-rw-r--r-- | mail/dspam-devel/files/patch-scripts_train.pl | 17 | ||||
-rw-r--r-- | mail/dspam-devel/files/patch-src_libdspam.c | 23 |
3 files changed, 63 insertions, 0 deletions
diff --git a/mail/dspam-devel/files/UPDATING b/mail/dspam-devel/files/UPDATING index 4503e8d3ad25..8433e99c9ac6 100644 --- a/mail/dspam-devel/files/UPDATING +++ b/mail/dspam-devel/files/UPDATING @@ -12,6 +12,29 @@ also the UPGRADING enclosed in the dspam distribution. You can see it by doing in the port directory: make extract; more `find . -type f -maxdepth 2 -name UPGRADING` +########################################################################### +# dspam-devel-3.6.1 +# + +!!! WARNING: Both dspam 3.6.0 and 3.6.1 have a memory leak !!! +Watch the size and res (top -o size or top -o res) of dspam process and +restart it (/usr/local/etc/rc.d/dspam-devel.sh restart) when it gets to big. + +BUGFIX: ParseToHeaders can segfault on malformatted To header +BUGFIX: TrackSources does not correctly parse messages with QMail Received +headers +BUGFIX: Missing check for existing strcasestr +BUGFIX: X-DSPAM-Reclassified heading appears blank +BUGFIX: Plused-Detail support does not work with domains +BUGFIX: Hash databases are not 8-byte aligned (do not work with 64-bit systems) +use cssconvert to convert your hash file +BUGFIX: Certain daemon-mode operations append a trailing period +BUGFIX: DataSource 'document' option causes improper processing +BUGFIX: Segfaults occur on malformed Content-Type header +BUGFIX: History appears blank in dspam.cgi + +- WITH_TRAIN_SCRIPT for an example training script dspam_train + ########################################################################### # dspam-devel-3.6.0 diff --git a/mail/dspam-devel/files/patch-scripts_train.pl b/mail/dspam-devel/files/patch-scripts_train.pl new file mode 100644 index 000000000000..3550e64474f5 --- /dev/null +++ b/mail/dspam-devel/files/patch-scripts_train.pl @@ -0,0 +1,17 @@ +--- scripts/train.pl.dist Tue Nov 8 14:34:38 2005 ++++ scripts/train.pl Tue Nov 8 14:36:06 2005 +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!%%PERL%% + + # train.pl + # This tool trains a corpus of messages (a directory containing a nonspam and +@@ -14,7 +14,7 @@ + use vars qw { $USER $PATH $REPORTING_WINDOW $CORPUS $TRAINING_MODE }; + + $REPORTING_WINDOW = 250; # How often to summarize +-$PATH = "/usr/local/dspam/bin"; # Path to dspam binaries ++$PATH = "%%DSPAM_PATH%%"; # Path to dspam binaries + $TRAINING_MODE = "teft"; # Training mode + + ### DO NOT CONFIGURE BELOW THIS LINE ### diff --git a/mail/dspam-devel/files/patch-src_libdspam.c b/mail/dspam-devel/files/patch-src_libdspam.c new file mode 100644 index 000000000000..e7f818e9502c --- /dev/null +++ b/mail/dspam-devel/files/patch-src_libdspam.c @@ -0,0 +1,23 @@ +--- src/libdspam.c 2 Nov 2005 19:39:28 -0000 1.142 ++++ src/libdspam.c 8 Nov 2005 15:26:44 -0000 1.143 +@@ -672,6 +672,8 @@ + current_heading = (ds_header_t) node_nt->ptr; + if (!strcmp (current_heading->heading, "Received")) + { ++ char *data, *ptr, *tok; ++ + // detect and skip "Received: (qmail..." lines + if (!strncmp(current_heading->data, "(qmail", 6)) + { +@@ -680,9 +682,8 @@ + continue; + } + +- char *data = strdup (current_heading->data); +- char *ptr = strstr (data, "from"); +- char *tok; ++ data = strdup (current_heading->data); ++ ptr = strstr (data, "from"); + + if (ptr != NULL) + { |