Browse code

Better handling of bounces

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

Nigel Horne authored on 2004/08/09 04:16:37
Showing 3 changed files
... ...
@@ -1,3 +1,8 @@
1
+Sun Aug  8 20:14:04 BST 2004 (njh)
2
+----------------------------------
3
+  * libclamav:		Improved the efficiency of scanning of emails for
4
+				bounce messages containing viruses
5
+
1 6
 Sat Aug  7 14:10:57 BST 2004 (njh)
2 7
 ----------------------------------
3 8
   * clamav-milter:	Better load balancing when max-children is not set
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: mbox.c,v $
20
+ * Revision 1.92  2004/08/08 19:13:14  nigelhorne
21
+ * Better handling of bounces
22
+ *
20 23
  * Revision 1.91  2004/08/04 18:59:19  nigelhorne
21 24
  * Tidy up multipart handling
22 25
  *
... ...
@@ -261,7 +264,7 @@
261 261
  * Compilable under SCO; removed duplicate code with message.c
262 262
  *
263 263
  */
264
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.91 2004/08/04 18:59:19 nigelhorne Exp $";
264
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.92 2004/08/08 19:13:14 nigelhorne Exp $";
265 265
 
266 266
 #if HAVE_CONFIG_H
267 267
 #include "clamav-config.h"
... ...
@@ -1681,7 +1684,8 @@ parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, con
1681 1681
 				for(t = t_line; t; t = t->t_next)
1682 1682
 					if(t->t_text &&
1683 1683
 					   (strncasecmp(t->t_text, encoding, sizeof(encoding) - 1) == 0) &&
1684
-					   (strstr(t->t_text, "7bit") == NULL))
1684
+					   (strstr(t->t_text, "7bit") == NULL) &&
1685
+					   (strstr(t->t_text, "8bit") == NULL))
1685 1686
 						break;
1686 1687
 				if(t && ((b = textToBlob(t_line, NULL)) != NULL)) {
1687 1688
 					cli_dbgmsg("Found a bounce message\n");
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: message.c,v $
20
+ * Revision 1.70  2004/08/08 19:13:15  nigelhorne
21
+ * Better handling of bounces
22
+ *
20 23
  * Revision 1.69  2004/08/04 18:59:19  nigelhorne
21 24
  * Tidy up multipart handling
22 25
  *
... ...
@@ -204,7 +207,7 @@
204 204
  * uuencodebegin() no longer static
205 205
  *
206 206
  */
207
-static	char	const	rcsid[] = "$Id: message.c,v 1.69 2004/08/04 18:59:19 nigelhorne Exp $";
207
+static	char	const	rcsid[] = "$Id: message.c,v 1.70 2004/08/08 19:13:15 nigelhorne Exp $";
208 208
 
209 209
 #if HAVE_CONFIG_H
210 210
 #include "clamav-config.h"
... ...
@@ -851,7 +854,7 @@ messageAddLine(message *m, const char *line, int takeCopy)
851 851
 		   (strncasecmp(line, encoding, sizeof(encoding) - 1) == 0) &&
852 852
 		   (strstr(line, "7bit") == NULL))
853 853
 			m->encoding = m->body_last;
854
-		else if((m->bounce == NULL) &&
854
+		else if(/*(m->bounce == NULL) &&*/
855 855
 			(cli_filetype(line, strlen(line)) == CL_MAILFILE))
856 856
 				m->bounce = m->body_last;
857 857
 		else if((m->binhex == NULL) &&