git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@2519 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2006/11/25 07:23:16... | ... |
@@ -16,7 +16,7 @@ |
16 | 16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
17 | 17 |
* MA 02110-1301, USA. |
18 | 18 |
*/ |
19 |
-static char const rcsid[] = "$Id: mbox.c,v 1.359 2006/11/10 22:39:05 njh Exp $"; |
|
19 |
+static char const rcsid[] = "$Id: mbox.c,v 1.360 2006/11/24 22:23:16 njh Exp $"; |
|
20 | 20 |
|
21 | 21 |
#ifdef _MSC_VER |
22 | 22 |
#include <winsock.h> /* only needed in CL_EXPERIMENTAL */ |
... | ... |
@@ -2037,7 +2037,7 @@ parseEmailBody(message *messageIn, text *textIn, mbox_ctx *mctx, unsigned int re |
2037 | 2037 |
fileblob *fb; |
2038 | 2038 |
bool infected = FALSE; |
2039 | 2039 |
#ifdef CL_EXPERIMENTAL |
2040 |
- const int doPhishingScan = !(mctx->ctx->options&CL_SCAN_NOPHISHING); /* || (mctx->ctx->options&CL_SCAN_PHISHING_GA_TRAIN) || (mctx->ctx->options&CL_SCAN_PHISHING_GA); kept here for the GA MERGE */ |
|
2040 |
+ const int doPhishingScan = !(mctx->ctx->engine->dboptions&CL_DB_NOPHISHING_URLS); /* || (mctx->ctx->options&CL_SCAN_PHISHING_GA_TRAIN) || (mctx->ctx->options&CL_SCAN_PHISHING_GA); kept here for the GA MERGE */ |
|
2041 | 2041 |
#endif |
2042 | 2042 |
|
2043 | 2043 |
cli_dbgmsg("in parseEmailBody\n"); |
... | ... |
@@ -3915,7 +3915,7 @@ checkURLs(message *mainMessage, mbox_ctx *mctx, int *rc, int is_html) |
3915 | 3915 |
tag_arguments_t hrefs; |
3916 | 3916 |
blob *b; |
3917 | 3917 |
|
3918 |
- hrefs.scanContents = (!(mctx->ctx->options&CL_SCAN_NOPHISHING)); /* aCaB: stripped GA related stuff */ |
|
3918 |
+ hrefs.scanContents = (!(mctx->ctx->engine->dboptions&CL_DB_NOPHISHING_URLS)); /* aCaB: stripped GA related stuff */ |
|
3919 | 3919 |
|
3920 | 3920 |
#if (!defined(FOLLOWURLS)) || (FOLLOWURLS <= 0) |
3921 | 3921 |
if(!hrefs.scanContents) |
... | ... |
@@ -3932,7 +3932,7 @@ checkURLs(message *mainMessage, mbox_ctx *mctx, int *rc, int is_html) |
3932 | 3932 |
|
3933 | 3933 |
b = getHrefs(mainMessage, &hrefs); |
3934 | 3934 |
if(b) { |
3935 |
- if(!(mctx->ctx->options&CL_SCAN_NOPHISHING)) { |
|
3935 |
+ if(hrefs.scanContents /*!(mctx->ctx->engine->dboptions&CL_DB_NOPHISHING_URLS*/) { |
|
3936 | 3936 |
if(phishingScan(mainMessage, mctx->dir, mctx->ctx, &hrefs) == CL_VIRUS) { |
3937 | 3937 |
mainMessage->isInfected = TRUE; |
3938 | 3938 |
*rc = 3; |
... | ... |
@@ -5252,7 +5252,7 @@ do_multipart(message *mainMessage, message **messages, int i, int *rc, mbox_ctx |
5252 | 5252 |
if((mctx->ctx->options&CL_SCAN_MAILURL) && is_html) |
5253 | 5253 |
checkURLs(aMessage, mctx, rc, 1); |
5254 | 5254 |
#ifdef CL_EXPERIMENTAL |
5255 |
- else if(!(mctx->ctx->options&CL_SCAN_NOPHISHING)) |
|
5255 |
+ else if(!(mctx->ctx->engine->dboptions&CL_DB_NOPHISHING_URLS)) |
|
5256 | 5256 |
checkURLs(aMessage, mctx, rc, is_html); |
5257 | 5257 |
#endif |
5258 | 5258 |
messageAddArgument(aMessage, |