Browse code

Added bounce and handle text/plain encoding messages

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

Nigel Horne authored on 2004/03/18 23:07:44
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Thu Mar 18 14:16:19 GMT 2004 (njh)
2
+----------------------------------
3
+  * libclamav/message.c:	Added bounce and handle text/plain encoded
4
+		messages
5
+
1 6
 Thu Mar 18 15:04:41 CET 2004 (tk)
2 7
 ---------------------------------
3 8
   * clamdscan: in the LocalSocket mode the server2 address struct was not
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: message.c,v $
20
+ * Revision 1.39  2004/03/18 14:05:25  nigelhorne
21
+ * Added bounce and handle text/plain encoding messages
22
+ *
20 23
  * Revision 1.38  2004/03/17 19:47:32  nigelhorne
21 24
  * Handle spaces in disposition type
22 25
  *
... ...
@@ -111,7 +114,7 @@
111 111
  * uuencodebegin() no longer static
112 112
  *
113 113
  */
114
-static	char	const	rcsid[] = "$Id: message.c,v 1.38 2004/03/17 19:47:32 nigelhorne Exp $";
114
+static	char	const	rcsid[] = "$Id: message.c,v 1.39 2004/03/18 14:05:25 nigelhorne Exp $";
115 115
 
116 116
 #if HAVE_CONFIG_H
117 117
 #include "clamav-config.h"
... ...
@@ -171,6 +174,7 @@ static	const	struct	encoding_map {
171 171
 	encoding_type	type;
172 172
 } encoding_map[] = {
173 173
 	{	"7bit",			NOENCODING	},
174
+{	"text/plain",		NOENCODING	},
174 175
 	{	"quoted-printable",	QUOTEDPRINTABLE	},	/* rfc1522 */
175 176
 	{	"base64",		BASE64		},
176 177
 	{	"8bit",			EIGHTBIT	},
... ...
@@ -193,6 +197,9 @@ static	struct	mime_map {
193 193
 	{	NULL,			TEXT		}
194 194
 };
195 195
 
196
+/*
197
+ * TODO: remove this table and scan all *efficiently* for bounce messages
198
+ */
196 199
 static const char *bounces[] = {
197 200
 	"--- Below this line is a copy of the message.",
198 201
 	"------ This is a copy of the message, including all the headers. ------",
... ...
@@ -206,6 +213,7 @@ static const char *bounces[] = {
206 206
 	"A copy of the original message below this line:",
207 207
 	"==== Begin Message",
208 208
 	"------------------------------ Original message ------------------------------",
209
+	"Original message follows:",
209 210
 	NULL
210 211
 };
211 212