git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1139 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/11/29 01:27:28... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: mbox.c,v $ |
20 |
+ * Revision 1.192 2004/11/28 16:27:28 nigelhorne |
|
21 |
+ * Save the text portions as text not mail files |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.191 2004/11/27 21:55:06 nigelhorne |
21 | 24 |
* Changed some more strtok to cli_strtok |
22 | 25 |
* |
... | ... |
@@ -561,7 +564,7 @@ |
561 | 561 |
* Compilable under SCO; removed duplicate code with message.c |
562 | 562 |
* |
563 | 563 |
*/ |
564 |
-static char const rcsid[] = "$Id: mbox.c,v 1.191 2004/11/27 21:55:06 nigelhorne Exp $"; |
|
564 |
+static char const rcsid[] = "$Id: mbox.c,v 1.192 2004/11/28 16:27:28 nigelhorne Exp $"; |
|
565 | 565 |
|
566 | 566 |
#if HAVE_CONFIG_H |
567 | 567 |
#include "clamav-config.h" |
... | ... |
@@ -1067,9 +1070,8 @@ parseEmailHeaders(const message *m, const table_t *rfc821) |
1067 | 1067 |
else |
1068 | 1068 |
buffer = NULL; |
1069 | 1069 |
|
1070 |
- cli_dbgmsg("parseEmailHeaders: check '%s'\n", buffer ? buffer : ""); |
|
1071 |
- |
|
1072 | 1070 |
if(inHeader) { |
1071 |
+ cli_dbgmsg("parseEmailHeaders: check '%s'\n", buffer ? buffer : ""); |
|
1073 | 1072 |
if((buffer == NULL) && !contMarker) { |
1074 | 1073 |
/* |
1075 | 1074 |
* A blank line signifies the end of the header |
... | ... |
@@ -2081,7 +2083,7 @@ parseEmailBody(message *messageIn, text *textIn, const char *dir, const table_t |
2081 | 2081 |
if((fb = fileblobCreate()) != NULL) { |
2082 | 2082 |
cli_dbgmsg("Save non mime part\n"); |
2083 | 2083 |
fileblobSetFilename(fb, dir, "textpart"); |
2084 |
- fileblobAddData(fb, "Received: by clamd (textpart)\n", 30); |
|
2084 |
+ /*fileblobAddData(fb, "Received: by clamd (textpart)\n", 30);*/ |
|
2085 | 2085 |
|
2086 | 2086 |
fb = textToFileblob(aText, fb); |
2087 | 2087 |
|