diff options
Diffstat (limited to 'mail/spamprobe/files/patch-MessageFactory.cc')
| -rw-r--r-- | mail/spamprobe/files/patch-MessageFactory.cc | 23 |
1 files changed, 14 insertions, 9 deletions
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 { |
