Browse code

scan Qmail bounces

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

Tomasz Kojm authored on 2004/03/03 19:34:11
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Mar  3 11:36:17 CET 2004 (tk)
2
+---------------------------------
3
+  * libclamav: mbox wrapper: scan Qmail bounces
4
+
1 5
 Wed Mar  3 09:22:09 GMT 2004 (njh)
2 6
 ----------------------------------
3 7
   * clamav-milter:	Check clamd is running before starting (if clamd is
... ...
@@ -76,21 +76,22 @@ struct cl_magic_s {
76 76
     cl_file_t type;
77 77
 };
78 78
 
79
-#define MAGIC_BUFFER_SIZE 14
79
+#define MAGIC_BUFFER_SIZE 26
80 80
 static const struct cl_magic_s cl_magic[] = {
81
-    {0,  "Rar!",            4, "RAR",		    CL_RARFILE},
82
-    {0,  "PK\003\004",      4, "ZIP",		    CL_ZIPFILE},
83
-    {0,  "\037\213",        2, "GZip",		    CL_GZFILE},
84
-    {0,  "BZh",             3, "BZip",		    CL_BZFILE},
85
-    {0,  "From ",           5, "MBox",		    CL_MAILFILE},
86
-    {0,  "Received: ",     10, "Raw mail",	    CL_MAILFILE},
87
-    {0,  "Return-Path: ",  13, "Maildir",	    CL_MAILFILE},
88
-    {0,  "Return-path: ",  13, "Maildir",	    CL_MAILFILE},
89
-    {0,  "Delivered-To: ", 14, "Mail",		    CL_MAILFILE},
90
-    {0,  "X-UIDL: ",	    8, "Mail",		    CL_MAILFILE},
91
-    {0,  "For: ",           5, "Eserv mail",	    CL_MAILFILE},
92
-    {0,  "From: ",          6, "Exim mail",	    CL_MAILFILE},
93
-    {0,  "X-Symantec-",    11, "Symantec",	    CL_MAILFILE},
81
+    {0,  "Rar!",			4, "RAR",	    CL_RARFILE},
82
+    {0,  "PK\003\004",			4, "ZIP",	    CL_ZIPFILE},
83
+    {0,  "\037\213",			2, "GZip",	    CL_GZFILE},
84
+    {0,  "BZh",				3, "BZip",	    CL_BZFILE},
85
+    {0,  "From ",			5, "MBox",	    CL_MAILFILE},
86
+    {0,  "Received: ",			10, "Raw mail",	    CL_MAILFILE},
87
+    {0,  "Return-Path: ",		13, "Maildir",	    CL_MAILFILE},
88
+    {0,  "Return-path: ",		13, "Maildir",	    CL_MAILFILE},
89
+    {0,  "Delivered-To: ",		14, "Mail",	    CL_MAILFILE},
90
+    {0,  "X-UIDL: ",			8, "Mail",	    CL_MAILFILE},
91
+    {0,  "For: ",			5, "Eserv mail",    CL_MAILFILE},
92
+    {0,  "From: ",			6, "Exim mail",	    CL_MAILFILE},
93
+    {0,  "X-Symantec-",			11, "Symantec",	    CL_MAILFILE},
94
+    {0,  "Hi. This is the qmail-send",  26, "Qmail bounce", CL_MAILFILE},
94 95
     {0,  "\320\317\021\340\241\261\032\341",
95 96
 	                    8, "OLE2 container",  CL_OLE2FILE},
96 97
     {-1, NULL,              0, NULL,              CL_UNKNOWN_TYPE}