Browse code

Find more bounce messages

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

Nigel Horne authored on 2004/11/18 02:35:36
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Nov 17 17:35:26 GMT 2004 (njh)
2
+----------------------------------
3
+  * libclamav/message.c:	Scan some more bounce messages
4
+
1 5
 Tue Nov 16 18:24:06 CET 2004 (tk)
2 6
 ---------------------------------
3 7
   * libclamav/filetypes.c: add new mail detection rule
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: message.c,v $
20
+ * Revision 1.116  2004/11/17 17:32:15  nigelhorne
21
+ * Find more bounce messages
22
+ *
20 23
  * Revision 1.115  2004/11/12 22:21:57  nigelhorne
21 24
  * Binxhex detection speeded up
22 25
  *
... ...
@@ -342,7 +345,7 @@
342 342
  * uuencodebegin() no longer static
343 343
  *
344 344
  */
345
-static	char	const	rcsid[] = "$Id: message.c,v 1.115 2004/11/12 22:21:57 nigelhorne Exp $";
345
+static	char	const	rcsid[] = "$Id: message.c,v 1.116 2004/11/17 17:32:15 nigelhorne Exp $";
346 346
 
347 347
 #if HAVE_CONFIG_H
348 348
 #include "clamav-config.h"
... ...
@@ -1030,6 +1033,9 @@ messageSetEncoding(message *m, const char *enctype)
1030 1030
 
1031 1031
 		if(e->string == NULL) {
1032 1032
 			/*
1033
+			 * The stated encoding type is illegal, so we
1034
+			 * use a best guess of what it should be.
1035
+			 *
1033 1036
 			 * 50% is arbitary. For example 7bi will match as
1034 1037
 			 * 66% certain to be 7bit
1035 1038
 			 */
... ...
@@ -1214,7 +1220,7 @@ messageIsEncoding(message *m)
1214 1214
 	   (strncasecmp(line, encoding, sizeof(encoding) - 1) == 0) &&
1215 1215
 	   (strstr(line, "7bit") == NULL))
1216 1216
 		m->encoding = m->body_last;
1217
-	else if(/*(m->bounce == NULL) &&*/
1217
+	else if((m->bounce == NULL) &&
1218 1218
 		(cli_filetype(line, strlen(line)) == CL_TYPE_MAIL))
1219 1219
 			m->bounce = m->body_last;
1220 1220
 	else if((m->uuencode == NULL) &&