Browse code

Added new bounce message

git-svn: trunk@374

Nigel Horne authored on 2004/03/07 21:32:01
Showing 1 changed files
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: message.c,v $
20
+ * Revision 1.35  2004/03/07 12:32:01  nigelhorne
21
+ * Added new bounce message
22
+ *
20 23
  * Revision 1.34  2004/02/20 17:04:43  nigelhorne
21 24
  * Added new bounce delimeter
22 25
  *
... ...
@@ -99,7 +102,7 @@
99 99
  * uuencodebegin() no longer static
100 100
  *
101 101
  */
102
-static	char	const	rcsid[] = "$Id: message.c,v 1.34 2004/02/20 17:04:43 nigelhorne Exp $";
102
+static	char	const	rcsid[] = "$Id: message.c,v 1.35 2004/03/07 12:32:01 nigelhorne Exp $";
103 103
 
104 104
 #if HAVE_CONFIG_H
105 105
 #include "clamav-config.h"
... ...
@@ -169,7 +172,7 @@ static	const	struct	encoding_map {
169 169
 	{	"8bit",			EIGHTBIT	},
170 170
 	{	"x-uuencode",		UUENCODE	},
171 171
 	{	"binary",		BINARY		},
172
-	{	NULL,			0		}
172
+	{	NULL,			NOENCODING	}
173 173
 };
174 174
 
175 175
 static	struct	mime_map {
... ...
@@ -183,7 +186,7 @@ static	struct	mime_map {
183 183
 	{	"image",		IMAGE		},
184 184
 	{	"message",		MESSAGE		},
185 185
 	{	"video",		VIDEO		},
186
-	{	NULL,			0		}
186
+	{	NULL,			TEXT		}
187 187
 };
188 188
 
189 189
 static const char *bounces[] = {
... ...
@@ -198,6 +201,7 @@ static const char *bounces[] = {
198 198
 	"--- Below this line is the original bounce.",
199 199
 	"A copy of the original message below this line:",
200 200
 	"==== Begin Message",
201
+	"------------------------------ Original message ------------------------------",
201 202
 	NULL
202 203
 };
203 204
 
... ...
@@ -1228,7 +1232,7 @@ decodeLine(const message *m, const char *line, unsigned char *buf, size_t buflen
1228 1228
 			 * Klez doesn't always put "=" on the last line
1229 1229
 			 */
1230 1230
 			/*buf = decode(line, buf, base64, p2 == NULL);*/
1231
-			buf = decode(copy, buf, base64, 0);
1231
+			buf = decode(copy, buf, base64, FALSE);
1232 1232
 
1233 1233
 			free(copy);
1234 1234
 			break;
... ...
@@ -1268,6 +1272,9 @@ decodeLine(const message *m, const char *line, unsigned char *buf, size_t buflen
1268 1268
 	return buf;
1269 1269
 }
1270 1270
 
1271
+/*
1272
+ * Returns one byte after the end of the decoded data in "out"
1273
+ */
1271 1274
 static unsigned char *
1272 1275
 decode(const char *in, unsigned char *out, unsigned char (*decoder)(char), bool isFast)
1273 1276
 {