diff options
Diffstat (limited to 'mail/spamprobe/files')
-rw-r--r-- | mail/spamprobe/files/Makefile | 24 | ||||
-rw-r--r-- | mail/spamprobe/files/Makefile.export0_6 | 10 | ||||
-rw-r--r-- | mail/spamprobe/files/patch-MessageFactory.cc | 23 |
3 files changed, 14 insertions, 43 deletions
diff --git a/mail/spamprobe/files/Makefile b/mail/spamprobe/files/Makefile deleted file mode 100644 index 5387d34497c0..000000000000 --- a/mail/spamprobe/files/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# $FreeBSD$ -# - -.PATH: ${FILESDIR} - -PREFIX?= /usr/local -BINDIR= ${PREFIX}/bin -MANDIR= ${PREFIX}/man/man -PROG_CXX= spamprobe -CXXFLAGS+= -Wall -I${PREFIX}/include/db4 -DNDEBUG \ - -DPACKAGE=\"spamprobe\" -DVERSION=\"0.8b\" \ - -DHAVE_UNISTD_H=1 -DHAVE_REGEX_H=1 -DUSE_DB=1 -CFLAGS+= -Wall -I${PREFIX}/include/db4 -DNDEBUG \ - -DPACKAGE=\"spamprobe\" -DVERSION=\"0.8b\" \ - -DHAVE_UNISTD_H=1 -DHAVE_REGEX_H=1 -DUSE_DB=1 -LDFLAGS= -L${PREFIX}/lib -ldb4 -SRCS= File.cc FrequencyDB.cc FrequencyDBImpl_bdb.cc \ - FrequencyDBImpl_cache.cc FrequencyDBImpl_dbm.cc \ - FrequencyDBImpl_dual.cc LockFile.cc Message.cc \ - MessageFactory.cc MimeHeader.cc MimeLineReader.cc \ - MimeMessageReader.cc RegularExpression.cc SpamFilter.cc \ - Tokenizer.cc spamprobe.cc util.cc md5.c - -.include <bsd.prog.mk> diff --git a/mail/spamprobe/files/Makefile.export0_6 b/mail/spamprobe/files/Makefile.export0_6 deleted file mode 100644 index 4b025b2aaf53..000000000000 --- a/mail/spamprobe/files/Makefile.export0_6 +++ /dev/null @@ -1,10 +0,0 @@ -# $FreeBSD: /tmp/pcvs/ports/mail/spamprobe/files/Attic/Makefile.export0_6,v 1.3 2003-04-29 00:18:11 mdodd Exp $ -# -PREFIX?= /usr/local -BINDIR= ${PREFIX}/bin -NOMAN= -PROG_CXX= spamprobe-export_0.6 -CXXFLAGS+= -Wall -DUSE_DBM -DNDEBUG -SRCS= File.cc export0_6.cc - -.include <bsd.prog.mk> diff --git a/mail/spamprobe/files/patch-MessageFactory.cc b/mail/spamprobe/files/patch-MessageFactory.cc index 941ab4596ac8..9f266c8244ef 100644 --- a/mail/spamprobe/files/patch-MessageFactory.cc +++ b/mail/spamprobe/files/patch-MessageFactory.cc @@ -1,34 +1,39 @@ ---- MessageFactory.cc.orig Tue Mar 11 07:38:41 2003 -+++ MessageFactory.cc Tue Mar 11 07:51:38 2003 -@@ -28,7 +28,7 @@ - // http://www.cooldevtools.com/qpl.html + +$FreeBSD$ + +--- MessageFactory.cc.orig Mon Jan 26 22:49:13 2004 ++++ MessageFactory.cc Thu Feb 12 16:25:43 2004 +@@ -27,7 +27,7 @@ // + #include <set> -#include <strstream> +#include <sstream> + #include "FrequencyDB.h" #include "Tokenizer.h" #include "MessageFactory.h" - #include "RegularExpression.h" -@@ -50,11 +50,11 @@ +@@ -58,13 +58,13 @@ MessageFactory::MessageFactory() - : m_minWordLength(2), + : m_minWordLength(1), m_maxWordLength(90), + m_phraser(new PhraseBuilder(2)), m_replaceNonAsciiChars(true), m_nonAsciiChar('z'), m_removeHTML(true), + m_keepSuspiciousTags(false), + m_ignoreBody(false), - m_headersToInclude(NORMAL_HEADERS), - m_phraser(new PhraseBuilder(2)) + m_headersToInclude(NORMAL_HEADERS) { } -@@ -299,7 +299,7 @@ +@@ -383,7 +383,7 @@ text += ' '; } else if (entity[0] == '#') { int code = 0; - istrstream in(entity.c_str() + 1); + istringstream in(entity.c_str() + 1); in >> code; - text += (char)code; + text += safe_char(code); } else { |