Browse code

Disabled support for news messages.

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@55 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2003/09/25 01:36:57
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Sep 24 18:35:29 CEST 2003 (tk)
2
+----------------------------------
3
+  * libclamav: disabled support for news messages
4
+
1 5
 Wed Sep 24 10:37:10 BST 2003 (njh)
2 6
 ----------------------------------
3 7
 
... ...
@@ -55,7 +55,6 @@ int cli_scanrar_inuse = 0;
55 55
 #define ZIP_MAGIC_STR "PK\003\004"
56 56
 #define GZIP_MAGIC_STR "\037\213"
57 57
 #define MAIL_MAGIC_STR "From "
58
-#define NEWS_MAGIC_STR "Path:"
59 58
 #define RAWMAIL_MAGIC_STR "Received: "
60 59
 #define MAILDIR_MAGIC_STR "Return-Path: "
61 60
 #define DELIVERED_MAGIC_STR "Delivered-To: "
... ...
@@ -644,9 +643,7 @@ int cli_magic_scandesc(int desc, char **virname, long int *scanned, const struct
644 644
 	    ret = cli_scanbzip(desc, virname, scanned, root, limits, options, reclev);
645 645
 	}
646 646
 #endif
647
-	else if(SCAN_MAIL &&
648
-		(!strncmp(magic, MAIL_MAGIC_STR, strlen(MAIL_MAGIC_STR)) ||
649
-		 !strncmp(magic, NEWS_MAGIC_STR, strlen(NEWS_MAGIC_STR)))) {
647
+	else if(SCAN_MAIL && !strncmp(magic, MAIL_MAGIC_STR, strlen(MAIL_MAGIC_STR))) {
650 648
 	    ret = cli_scanmail(desc, virname, scanned, root, limits, options, reclev);
651 649
 	}
652 650
 	else if(SCAN_MAIL && !strncmp(magic, RAWMAIL_MAGIC_STR, strlen(RAWMAIL_MAGIC_STR))) {