add a place holder for tnef

git-svn: trunk@1423
remotes/push_mirror/metadata
Tomasz Kojm 21 years ago
parent 5e0d3ebc53
commit 846e418679
  1. 1
      clamav-devel/libclamav/filetypes.c
  2. 1
      clamav-devel/libclamav/filetypes.h
  3. 12
      clamav-devel/libclamav/scanners.c

@ -93,6 +93,7 @@ static const struct cli_magic_s cli_magic[] = {
{0, "v:\015\012Received: ", 14, "VPOP3 Mail (DOS)", CL_TYPE_MAIL},
{0, "v:\012Received: ", 13, "VPOP3 Mail (UNIX)", CL_TYPE_MAIL},
{0, "Hi. This is the qmail-send", 26, "Qmail bounce", CL_TYPE_MAIL},
{0, "\042\076\237\170", 4, "TNEF", CL_TYPE_TNEF},
/* Others */

@ -42,6 +42,7 @@ typedef enum {
CL_TYPE_GRAPHICS,
CL_TYPE_RIFF,
CL_TYPE_BINHEX,
CL_TYPE_TNEF,
/* bigger numbers have higher priority (in o-t-f detection) */
CL_TYPE_HTML, /* on the fly */

@ -1291,6 +1291,13 @@ static int cli_scanmail(int desc, const char **virname, long int *scanned, const
return ret;
}
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)
{
cli_warnmsg("TNEF not scanned yet\n");
return CL_CLEAN;
}
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)
{
int ret = CL_CLEAN, nret;
@ -1382,6 +1389,11 @@ int cli_magic_scandesc(int desc, const char **virname, long int *scanned, const
ret = cli_scanmail(desc, virname, scanned, root, limits, options, arec, mrec);
break;
case CL_TYPE_TNEF:
if(SCAN_MAIL)
ret = cli_scantnef(desc, virname, scanned, root, limits, options, arec, mrec);
break;
case CL_TYPE_MSCHM:
if(SCAN_ARCHIVE)
ret = cli_scanmschm(desc, virname, scanned, root, limits, options, arec, mrec);

Loading…
Cancel
Save