Browse code

add a place holder for tnef

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

Tomasz Kojm authored on 2005/03/23 07:43:45
Showing 3 changed files
... ...
@@ -93,6 +93,7 @@ static const struct cli_magic_s cli_magic[] = {
93 93
     {0,  "v:\015\012Received: ",	14, "VPOP3 Mail (DOS)",	  CL_TYPE_MAIL},
94 94
     {0,  "v:\012Received: ",		13, "VPOP3 Mail (UNIX)",  CL_TYPE_MAIL},
95 95
     {0,  "Hi. This is the qmail-send",  26, "Qmail bounce",	  CL_TYPE_MAIL},
96
+    {0,  "\042\076\237\170",		4,  "TNEF",		  CL_TYPE_TNEF},
96 97
 
97 98
     /* Others */
98 99
 
... ...
@@ -42,6 +42,7 @@ typedef enum {
42 42
     CL_TYPE_GRAPHICS,
43 43
     CL_TYPE_RIFF,
44 44
     CL_TYPE_BINHEX,
45
+    CL_TYPE_TNEF,
45 46
 
46 47
     /* bigger numbers have higher priority (in o-t-f detection) */
47 48
     CL_TYPE_HTML, /* on the fly */
... ...
@@ -1291,6 +1291,13 @@ static int cli_scanmail(int desc, const char **virname, long int *scanned, const
1291 1291
     return ret;
1292 1292
 }
1293 1293
 
1294
+static int cli_scantnef(int desc, const char **virname, long int *scanned, const struct cl_node *root, const struct cl_limits *limits, unsigned int options, unsigned int arec, unsigned int mrec)
1295
+{
1296
+    cli_warnmsg("TNEF not scanned yet\n");
1297
+
1298
+    return CL_CLEAN;
1299
+}
1300
+
1294 1301
 int cli_magic_scandesc(int desc, const char **virname, long int *scanned, const struct cl_node *root, const struct cl_limits *limits, unsigned int options, unsigned int arec, unsigned int mrec)
1295 1302
 {
1296 1303
 	int ret = CL_CLEAN, nret;
... ...
@@ -1382,6 +1389,11 @@ int cli_magic_scandesc(int desc, const char **virname, long int *scanned, const
1382 1382
 		ret = cli_scanmail(desc, virname, scanned, root, limits, options, arec, mrec);
1383 1383
 	    break;
1384 1384
 
1385
+	case CL_TYPE_TNEF:
1386
+	    if(SCAN_MAIL)
1387
+		ret = cli_scantnef(desc, virname, scanned, root, limits, options, arec, mrec);
1388
+	    break;
1389
+
1385 1390
 	case CL_TYPE_MSCHM:
1386 1391
 	    if(SCAN_ARCHIVE)
1387 1392
 		ret = cli_scanmschm(desc, virname, scanned, root, limits, options, arec, mrec);