Browse code

Add debug message for end of multipart headers

git-svn: trunk@1125

Nigel Horne authored on 2004/11/27 02:32:42
Showing 1 changed files
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: mbox.c,v $
20
+ * Revision 1.183  2004/11/26 17:32:42  nigelhorne
21
+ * Add debug message for end of multipart headers
22
+ *
20 23
  * Revision 1.182  2004/11/26 12:05:17  nigelhorne
21 24
  * Remove warning message
22 25
  *
... ...
@@ -534,7 +537,7 @@
534 534
  * Compilable under SCO; removed duplicate code with message.c
535 535
  *
536 536
  */
537
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.182 2004/11/26 12:05:17 nigelhorne Exp $";
537
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.183 2004/11/26 17:32:42 nigelhorne Exp $";
538 538
 
539 539
 #if HAVE_CONFIG_H
540 540
 #include "clamav-config.h"
... ...
@@ -1458,7 +1461,7 @@ parseEmailBody(message *messageIn, text *textIn, const char *dir, const table_t
1458 1458
 
1459 1459
 					if(inMimeHead) {	/* continuation line */
1460 1460
 						if(line == NULL) {
1461
-							inhead = inMimeHead = 0;
1461
+							/*inhead =*/ inMimeHead = 0;
1462 1462
 							continue;
1463 1463
 						}
1464 1464
 						/*
... ...
@@ -1497,6 +1500,8 @@ parseEmailBody(message *messageIn, text *textIn, const char *dir, const table_t
1497 1497
 
1498 1498
 						if(line == NULL) {
1499 1499
 							/* empty line */
1500
+							cli_dbgmsg("Multipart %d: End of header information\n",
1501
+								multiparts);
1500 1502
 							inhead = 0;
1501 1503
 							continue;
1502 1504
 						}