Browse code

*** empty log message ***

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

Tomasz Kojm authored on 2003/09/22 05:04:07
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Sun Sep 21 22:03:13 CEST 2003 (tk)
2
+----------------------------------
3
+  * libclamav: enabled support for News messaged (thanks to
4
+               Lars Magne Ingebrigtsen)
5
+
1 6
 Sun Sep 21 22:00:34 CEST 2003 (tk)
2 7
 ----------------------------------
3 8
   * libclamav: unrar: fixed potential infinite loop (thanks to
... ...
@@ -55,6 +55,7 @@ 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:"
58 59
 #define RAWMAIL_MAGIC_STR "Received: "
59 60
 #define MAILDIR_MAGIC_STR "Return-Path: "
60 61
 #define DELIVERED_MAGIC_STR "Delivered-To: "
... ...
@@ -643,7 +644,9 @@ int cli_magic_scandesc(int desc, char **virname, long int *scanned, const struct
643 643
 	    ret = cli_scanbzip(desc, virname, scanned, root, limits, options, reclev);
644 644
 	}
645 645
 #endif
646
-	else if(SCAN_MAIL && !strncmp(magic, MAIL_MAGIC_STR, strlen(MAIL_MAGIC_STR))) {
646
+	else if(SCAN_MAIL &&
647
+		(!strncmp(magic, MAIL_MAGIC_STR, strlen(MAIL_MAGIC_STR)) ||
648
+		 !strncmp(magic, NEWS_MAGIC_STR, strlen(NEWS_MAGIC_STR)))) {
647 649
 	    ret = cli_scanmail(desc, virname, scanned, root, limits, options, reclev);
648 650
 	}
649 651
 	else if(SCAN_MAIL && !strncmp(magic, RAWMAIL_MAGIC_STR, strlen(RAWMAIL_MAGIC_STR))) {