Browse code

scan VPOP3 mail files

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

Tomasz Kojm authored on 2004/03/27 05:21:56
Showing 3 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Mar 26 21:32:28 CET 2004 (tk)
2
+---------------------------------
3
+  * libclamav: scan VPOP3 mail files (thanks to Steve <steveb*webtribe.net>)
4
+
1 5
 Fri Mar 26 16:22:45 CET 2004 (tk)
2 6
 ---------------------------------
3 7
   * libclamav: scanners: use cli_writen()
... ...
@@ -273,7 +273,6 @@ char *cl_gentemp(const char *dir)
273 273
 	int i;
274 274
 	struct stat foo;
275 275
 
276
-    cli_dbgmsg("in cl_gentemp()\n");
277 276
 
278 277
     if(!dir)
279 278
 	mdir = "/tmp";
... ...
@@ -69,21 +69,23 @@ struct cli_magic_s {
69 69
 
70 70
 #define MAGIC_BUFFER_SIZE 26
71 71
 static const struct cli_magic_s cli_magic[] = {
72
-    {0,  "Rar!",			4,  "RAR",	    CL_RARFILE},
73
-    {0,  "PK\003\004",			4,  "ZIP",	    CL_ZIPFILE},
74
-    {0,  "\037\213",			2,  "GZip",	    CL_GZFILE},
75
-    {0,  "BZh",				3,  "BZip",	    CL_BZFILE},
76
-    {0,  "From ",			5,  "MBox",	    CL_MAILFILE},
77
-    {0,  "Received: ",			10, "Raw mail",	    CL_MAILFILE},
78
-    {0,  "Return-Path: ",		13, "Maildir",	    CL_MAILFILE},
79
-    {0,  "Return-path: ",		13, "Maildir",	    CL_MAILFILE},
80
-    {0,  "Delivered-To: ",		14, "Mail",	    CL_MAILFILE},
81
-    {0,  "X-UIDL: ",			8,  "Mail",	    CL_MAILFILE},
82
-    {0,  "For: ",			5,  "Eserv mail",   CL_MAILFILE},
83
-    {0,  "From: ",			6,  "Exim mail",    CL_MAILFILE},
84
-    {0,  "X-Symantec-",			11, "Symantec",	    CL_MAILFILE},
85
-    {0,  "X-Apparently-To: ",		17, "Symantec",	    CL_MAILFILE},
86
-    {0,  "Hi. This is the qmail-send",  26, "Qmail bounce", CL_MAILFILE},
72
+    {0,  "Rar!",			4,  "RAR",		  CL_RARFILE},
73
+    {0,  "PK\003\004",			4,  "ZIP",		  CL_ZIPFILE},
74
+    {0,  "\037\213",			2,  "GZip",		  CL_GZFILE},
75
+    {0,  "BZh",				3,  "BZip",		  CL_BZFILE},
76
+    {0,  "From ",			5,  "MBox",		  CL_MAILFILE},
77
+    {0,  "Received: ",			10, "Raw mail",		  CL_MAILFILE},
78
+    {0,  "Return-Path: ",		13, "Maildir",		  CL_MAILFILE},
79
+    {0,  "Return-path: ",		13, "Maildir",		  CL_MAILFILE},
80
+    {0,  "Delivered-To: ",		14, "Mail",		  CL_MAILFILE},
81
+    {0,  "X-UIDL: ",			8,  "Mail",		  CL_MAILFILE},
82
+    {0,  "For: ",			5,  "Eserv mail",	  CL_MAILFILE},
83
+    {0,  "From: ",			6,  "Exim mail",	  CL_MAILFILE},
84
+    {0,  "X-Symantec-",			11, "Symantec",		  CL_MAILFILE},
85
+    {0,  "X-Apparently-To: ",		17, "Mail",		  CL_MAILFILE},
86
+    {0,  "v:\015\012Received: ",	14, "VPOP3 Mail (DOS)",	  CL_MAILFILE},
87
+    {0,  "v:\012Received: ",		13, "VPOP3 Mail (UNIX)",  CL_MAILFILE},
88
+    {0,  "Hi. This is the qmail-send",  26, "Qmail bounce",	  CL_MAILFILE},
87 89
     {0,  "\320\317\021\340\241\261\032\341",
88 90
 	                    8, "OLE2 container",  CL_OLE2FILE},
89 91
     {-1, NULL,              0, NULL,              CL_UNKNOWN_TYPE}