Find more bounce messages

git-svn: trunk@1103
remotes/push_mirror/metadata
Nigel Horne 21 years ago
parent 2e22ced83c
commit 68bad3a800
  1. 4
      clamav-devel/ChangeLog
  2. 10
      clamav-devel/libclamav/message.c

@ -1,3 +1,7 @@
Wed Nov 17 17:35:26 GMT 2004 (njh)
----------------------------------
* libclamav/message.c: Scan some more bounce messages
Tue Nov 16 18:24:06 CET 2004 (tk)
---------------------------------
* libclamav/filetypes.c: add new mail detection rule

@ -17,6 +17,9 @@
*
* Change History:
* $Log: message.c,v $
* Revision 1.116 2004/11/17 17:32:15 nigelhorne
* Find more bounce messages
*
* Revision 1.115 2004/11/12 22:21:57 nigelhorne
* Binxhex detection speeded up
*
@ -342,7 +345,7 @@
* uuencodebegin() no longer static
*
*/
static char const rcsid[] = "$Id: message.c,v 1.115 2004/11/12 22:21:57 nigelhorne Exp $";
static char const rcsid[] = "$Id: message.c,v 1.116 2004/11/17 17:32:15 nigelhorne Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -1030,6 +1033,9 @@ messageSetEncoding(message *m, const char *enctype)
if(e->string == NULL) {
/*
* The stated encoding type is illegal, so we
* use a best guess of what it should be.
*
* 50% is arbitary. For example 7bi will match as
* 66% certain to be 7bit
*/
@ -1214,7 +1220,7 @@ messageIsEncoding(message *m)
(strncasecmp(line, encoding, sizeof(encoding) - 1) == 0) &&
(strstr(line, "7bit") == NULL))
m->encoding = m->body_last;
else if(/*(m->bounce == NULL) &&*/
else if((m->bounce == NULL) &&
(cli_filetype(line, strlen(line)) == CL_TYPE_MAIL))
m->bounce = m->body_last;
else if((m->uuencode == NULL) &&

Loading…
Cancel
Save