Patch as requested by TK

git-svn: trunk@2519
remotes/push_mirror/metadata
Nigel Horne 19 years ago
parent 4784cdd026
commit 0b5716a033
  1. 10
      clamav-devel/libclamav/mbox.c

@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
static char const rcsid[] = "$Id: mbox.c,v 1.359 2006/11/10 22:39:05 njh Exp $";
static char const rcsid[] = "$Id: mbox.c,v 1.360 2006/11/24 22:23:16 njh Exp $";
#ifdef _MSC_VER
#include <winsock.h> /* only needed in CL_EXPERIMENTAL */
@ -2037,7 +2037,7 @@ parseEmailBody(message *messageIn, text *textIn, mbox_ctx *mctx, unsigned int re
fileblob *fb;
bool infected = FALSE;
#ifdef CL_EXPERIMENTAL
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 */
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 */
#endif
cli_dbgmsg("in parseEmailBody\n");
@ -3915,7 +3915,7 @@ checkURLs(message *mainMessage, mbox_ctx *mctx, int *rc, int is_html)
tag_arguments_t hrefs;
blob *b;
hrefs.scanContents = (!(mctx->ctx->options&CL_SCAN_NOPHISHING)); /* aCaB: stripped GA related stuff */
hrefs.scanContents = (!(mctx->ctx->engine->dboptions&CL_DB_NOPHISHING_URLS)); /* aCaB: stripped GA related stuff */
#if (!defined(FOLLOWURLS)) || (FOLLOWURLS <= 0)
if(!hrefs.scanContents)
@ -3932,7 +3932,7 @@ checkURLs(message *mainMessage, mbox_ctx *mctx, int *rc, int is_html)
b = getHrefs(mainMessage, &hrefs);
if(b) {
if(!(mctx->ctx->options&CL_SCAN_NOPHISHING)) {
if(hrefs.scanContents /*!(mctx->ctx->engine->dboptions&CL_DB_NOPHISHING_URLS*/) {
if(phishingScan(mainMessage, mctx->dir, mctx->ctx, &hrefs) == CL_VIRUS) {
mainMessage->isInfected = TRUE;
*rc = 3;
@ -5252,7 +5252,7 @@ do_multipart(message *mainMessage, message **messages, int i, int *rc, mbox_ctx
if((mctx->ctx->options&CL_SCAN_MAILURL) && is_html)
checkURLs(aMessage, mctx, rc, 1);
#ifdef CL_EXPERIMENTAL
else if(!(mctx->ctx->options&CL_SCAN_NOPHISHING))
else if(!(mctx->ctx->engine->dboptions&CL_DB_NOPHISHING_URLS))
checkURLs(aMessage, mctx, rc, is_html);
#endif
messageAddArgument(aMessage,

Loading…
Cancel
Save