Browse code

Use default decoders

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

Nigel Horne authored on 2004/09/16 19:09:03
Showing 4 changed files
... ...
@@ -1,3 +1,8 @@
1
+Thu Sep 16 11:07:37 BST 2004 (njh)
2
+----------------------------------
3
+  * libclamav/mbox:c	If a false or invented encoding type is stated attempt
4
+				to decode with all known decoders
5
+
1 6
 Thu Sep 16 09:58:01 BST 2004 (njh)
2 7
 ----------------------------------
3 8
   * libclamav/mbox.c:	Handle comments in the headers
... ...
@@ -51,7 +56,7 @@ Tue Sep 14 22:32:50 CEST 2004 (tk)
51 51
 
52 52
 Tue Sep 14 13:10:38 BST 2004 (njh)
53 53
 ----------------------------------
54
-  * libclamav/mbox.c:	FOLLOWURL: include the text of the old HTML 
54
+  * libclamav/mbox.c:	FOLLOWURL: include the text of the old HTML
55 55
 				normalisation code that works in RAM until the
56 56
 				code for the new HTML API that uses temporary
57 57
 				files is added to mbox.c. This allows clamAV to
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: message.c,v $
20
+ * Revision 1.79  2004/09/16 10:05:59  nigelhorne
21
+ * Use default decoders
22
+ *
20 23
  * Revision 1.78  2004/09/15 18:08:23  nigelhorne
21 24
  * Handle multiple encoding types
22 25
  *
... ...
@@ -231,7 +234,7 @@
231 231
  * uuencodebegin() no longer static
232 232
  *
233 233
  */
234
-static	char	const	rcsid[] = "$Id: message.c,v 1.78 2004/09/15 18:08:23 nigelhorne Exp $";
234
+static	char	const	rcsid[] = "$Id: message.c,v 1.79 2004/09/16 10:05:59 nigelhorne Exp $";
235 235
 
236 236
 #if HAVE_CONFIG_H
237 237
 #include "clamav-config.h"
... ...
@@ -859,8 +862,8 @@ messageSetEncoding(message *m, const char *enctype)
859 859
 			 * Err on the side of safety, enable all decoding
860 860
 			 * modules
861 861
 			 */
862
-			/*messageSetEncoding(m, "base64");
863
-			messageSetEncoding(m, "quoted-printable");*/
862
+			messageSetEncoding(m, "base64");
863
+			messageSetEncoding(m, "quoted-printable");
864 864
 			break;
865 865
 		}
866 866
 
... ...
@@ -19,6 +19,8 @@
19 19
 #include <stdio.h>
20 20
 #include <assert.h>
21 21
 
22
+#include "strrcpy.h"
23
+
22 24
 /*
23 25
  * Like strcpy, but return the END of the destination, allowing a quicker
24 26
  * means of adding to the end of a string than strcat
... ...
@@ -20,5 +20,7 @@
20 20
 
21 21
 #ifndef __STRRCPY_H
22 22
 #define __STRRCPY_H
23
-    char *strrcpy(char *dest, const char *source);
23
+
24
+char	*strrcpy(char *dest, const char *source);
25
+
24 26
 #endif