git-svn: trunk@3538
Nigel Horne authored on 2008/01/24 22:58:46... | ... |
@@ -46,6 +46,9 @@ static char const rcsid[] = "$Id: mbox.c,v 1.381 2007/02/15 12:26:44 njh Exp $"; |
46 | 46 |
#ifdef HAVE_STRINGS_H |
47 | 47 |
#include <strings.h> |
48 | 48 |
#endif |
49 |
+#ifdef HAVE_STRING_H |
|
50 |
+#include <string.h> |
|
51 |
+#endif |
|
49 | 52 |
#include <ctype.h> |
50 | 53 |
#include <time.h> |
51 | 54 |
#include <fcntl.h> |
... | ... |
@@ -187,10 +190,6 @@ typedef unsigned int in_addr_t; |
187 | 187 |
#define EISCONN WSAEISCONN |
188 | 188 |
#endif |
189 | 189 |
|
190 |
-#ifndef HAVE_STRCASESTR |
|
191 |
-#define strcasestr(h, n) strstr(h, n) /* This will cause isBounceMessage() to match too much */ |
|
192 |
-#endif |
|
193 |
- |
|
194 | 190 |
/* |
195 | 191 |
* Define this to handle messages covered by section 7.3.2 of RFC1341. |
196 | 192 |
* This is experimental code so it is up to YOU to (1) ensure it's secure |
... | ... |
@@ -2880,7 +2879,7 @@ parseEmailBody(message *messageIn, text *textIn, mbox_ctx *mctx, unsigned int re |
2880 | 2880 |
* Don't bother with text/plain or |
2881 | 2881 |
* text/html |
2882 | 2882 |
*/ |
2883 |
- if(strcasestr(s, "text/plain") != NULL) |
|
2883 |
+ if(cli_strcasestr(s, "text/plain") != NULL) |
|
2884 | 2884 |
/* |
2885 | 2885 |
* Don't bother to save the |
2886 | 2886 |
* unuseful part, read past |
... | ... |
@@ -2890,7 +2889,7 @@ parseEmailBody(message *messageIn, text *textIn, mbox_ctx *mctx, unsigned int re |
2890 | 2890 |
*/ |
2891 | 2891 |
continue; |
2892 | 2892 |
if((!doPhishingScan) && |
2893 |
- (strcasestr(s, "text/html") != NULL)) |
|
2893 |
+ (cli_strcasestr(s, "text/html") != NULL)) |
|
2894 | 2894 |
continue; |
2895 | 2895 |
break; |
2896 | 2896 |
} |