Browse code

Decode encapsulated bounce messages that have been base64 encoded (needlessly :-) )

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

Nigel Horne authored on 2005/02/01 23:51:02
Showing 2 changed files
... ...
@@ -1,3 +1,11 @@
1
+Tue Feb  1 14:47:21 GMT 2005 (njh)
2
+----------------------------------
3
+  * libclamav/blob.c:	Sanitise tab characters in filenames ("Heinz Martin"
4
+				<Martin@hemag.ch>)
5
+			Decode encapsulated messages that have for some reason
6
+				been base64 encoded (even though they're already
7
+				7 bit)
8
+
1 9
 Tue Feb  1 08:54:46 GMT 2005 (njh)
2 10
 ----------------------------------
3 11
   * clamav-milter:	Delete X-Virus-Status in clamfi_eom not in
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: mbox.c,v $
20
+ * Revision 1.214  2005/02/01 14:46:06  nigelhorne
21
+ * Decode encapsulated bounce messages that have been base64 encoded (needlessly :-) )
22
+ *
20 23
  * Revision 1.213  2005/01/31 11:02:43  nigelhorne
21 24
  * Handle blank lines in multipart headers
22 25
  *
... ...
@@ -627,7 +630,7 @@
627 627
  * Compilable under SCO; removed duplicate code with message.c
628 628
  *
629 629
  */
630
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.213 2005/01/31 11:02:43 nigelhorne Exp $";
630
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.214 2005/02/01 14:46:06 nigelhorne Exp $";
631 631
 
632 632
 #if HAVE_CONFIG_H
633 633
 #include "clamav-config.h"
... ...
@@ -2501,8 +2504,11 @@ parseEmailBody(message *messageIn, text *textIn, const char *dir, const table_t
2501 2501
 						break;
2502 2502
 					case MESSAGE:
2503 2503
 						/* Content-Type: message/rfc822 */
2504
-						cli_dbgmsg("Found message inside multipart\n");
2505
-						if(encodingLine(aMessage) == NULL) {
2504
+						cli_dbgmsg("Found message inside multipart (encoding type %d)\n",
2505
+							messageGetEncoding(aMessage));
2506
+#if	0
2507
+						if(messageGetEncoding(aMessage) == NOMIME) {
2508
+							cli_dbgmsg("No encoding line found in the multipart/message\n");
2506 2509
 							assert(aMessage == messages[i]);
2507 2510
 							messageDestroy(messages[i]);
2508 2511
 							messages[i] = NULL;
... ...
@@ -2510,6 +2516,7 @@ parseEmailBody(message *messageIn, text *textIn, const char *dir, const table_t
2510 2510
 						}
2511 2511
 						messageAddStrAtTop(aMessage,
2512 2512
 							"Received: by clamd (message/rfc822)");
2513
+#endif
2513 2514
 #ifdef	SAVE_TO_DISC
2514 2515
 						/*
2515 2516
 						 * Save this embedded message