Improve e-mail detection

git-svn: trunk@802
remotes/push_mirror/metadata
Tomasz Kojm 21 years ago
parent e368b3dd33
commit faa186f2c3
  1. 4
      clamav-devel/ChangeLog
  2. 4
      clamav-devel/libclamav/filetypes.c

@ -1,3 +1,7 @@
Thu Aug 26 15:33:50 CEST 2004 (tk)
----------------------------------
* libclamav/filetypes.c: Improve e-mail detection
Thu Aug 26 11:23:22 BST 2004 (njh)
----------------------------------
* clamav-milter/clamav-milter.c: Generate correct message if there is no

@ -64,7 +64,7 @@ static const struct cli_magic_s cli_magic[] = {
/* Mail */
{0, "From ", 5, "MBox", CL_MAILFILE},
{0, "Received", 8, "Raw mail", CL_MAILFILE},
{0, "Received: ", 10, "Raw mail", CL_MAILFILE},
{0, "Return-Path: ", 13, "Maildir", CL_MAILFILE},
{0, "Return-path: ", 13, "Maildir", CL_MAILFILE},
{0, "Delivered-To: ", 14, "Mail", CL_MAILFILE},
@ -155,7 +155,7 @@ cli_file_t cli_filetype(const char *buf, size_t buflen)
}
for(i = 0; i < buflen; i++)
if(!isprint(buf[i])) { /* FIXME: do we need to handle intern. chars? */
if(!iscntrl(buf[i]) && !isprint(buf[i])) { /* FIXME: do we need to handle intern. chars? */
ascii = 0;
break;
}

Loading…
Cancel
Save