Better handling of bounces

git-svn: trunk@732
remotes/push_mirror/metadata
Nigel Horne 21 years ago
parent 6302a4f6f5
commit ebfb404804
  1. 5
      clamav-devel/ChangeLog
  2. 8
      clamav-devel/libclamav/mbox.c
  3. 7
      clamav-devel/libclamav/message.c

@ -1,3 +1,8 @@
Sun Aug 8 20:14:04 BST 2004 (njh)
----------------------------------
* libclamav: Improved the efficiency of scanning of emails for
bounce messages containing viruses
Sat Aug 7 14:10:57 BST 2004 (njh)
----------------------------------
* clamav-milter: Better load balancing when max-children is not set

@ -17,6 +17,9 @@
*
* Change History:
* $Log: mbox.c,v $
* Revision 1.92 2004/08/08 19:13:14 nigelhorne
* Better handling of bounces
*
* Revision 1.91 2004/08/04 18:59:19 nigelhorne
* Tidy up multipart handling
*
@ -261,7 +264,7 @@
* Compilable under SCO; removed duplicate code with message.c
*
*/
static char const rcsid[] = "$Id: mbox.c,v 1.91 2004/08/04 18:59:19 nigelhorne Exp $";
static char const rcsid[] = "$Id: mbox.c,v 1.92 2004/08/08 19:13:14 nigelhorne Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -1681,7 +1684,8 @@ parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, con
for(t = t_line; t; t = t->t_next)
if(t->t_text &&
(strncasecmp(t->t_text, encoding, sizeof(encoding) - 1) == 0) &&
(strstr(t->t_text, "7bit") == NULL))
(strstr(t->t_text, "7bit") == NULL) &&
(strstr(t->t_text, "8bit") == NULL))
break;
if(t && ((b = textToBlob(t_line, NULL)) != NULL)) {
cli_dbgmsg("Found a bounce message\n");

@ -17,6 +17,9 @@
*
* Change History:
* $Log: message.c,v $
* Revision 1.70 2004/08/08 19:13:15 nigelhorne
* Better handling of bounces
*
* Revision 1.69 2004/08/04 18:59:19 nigelhorne
* Tidy up multipart handling
*
@ -204,7 +207,7 @@
* uuencodebegin() no longer static
*
*/
static char const rcsid[] = "$Id: message.c,v 1.69 2004/08/04 18:59:19 nigelhorne Exp $";
static char const rcsid[] = "$Id: message.c,v 1.70 2004/08/08 19:13:15 nigelhorne Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -851,7 +854,7 @@ messageAddLine(message *m, const char *line, int takeCopy)
(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_MAILFILE))
m->bounce = m->body_last;
else if((m->binhex == NULL) &&

Loading…
Cancel
Save