git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1907 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2006/04/13 21:09:44... | ... |
@@ -16,7 +16,7 @@ |
16 | 16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
17 | 17 |
* MA 02110-1301, USA. |
18 | 18 |
*/ |
19 |
-static char const rcsid[] = "$Id: mbox.c,v 1.285 2006/04/09 19:59:27 kojm Exp $"; |
|
19 |
+static char const rcsid[] = "$Id: mbox.c,v 1.286 2006/04/13 12:09:44 nigelhorne Exp $"; |
|
20 | 20 |
|
21 | 21 |
#if HAVE_CONFIG_H |
22 | 22 |
#include "clamav-config.h" |
... | ... |
@@ -168,6 +168,11 @@ typedef enum { FALSE = 0, TRUE = 1 } bool; |
168 | 168 |
|
169 | 169 |
/*#define NEW_WORLD*/ |
170 | 170 |
|
171 |
+/*#define SCAN_UNENCODED_BOUNCES /* |
|
172 |
+ * Slows things down a lot and only catches unencoded copies |
|
173 |
+ * of EICAR within bounces, which don't metter |
|
174 |
+ */ |
|
175 |
+ |
|
171 | 176 |
static int cli_parse_mbox(const char *dir, int desc, unsigned int options); |
172 | 177 |
static message *parseEmailFile(FILE *fin, const table_t *rfc821Table, const char *firstLine, const char *dir); |
173 | 178 |
static message *parseEmailHeaders(const message *m, const table_t *rfc821Table); |
... | ... |
@@ -2410,6 +2415,7 @@ parseEmailBody(message *messageIn, text *textIn, const char *dir, const table_t |
2410 | 2410 |
/* Content-Type: message/rfc822 */ |
2411 | 2411 |
cli_dbgmsg("Found message inside multipart (encoding type %d)\n", |
2412 | 2412 |
messageGetEncoding(aMessage)); |
2413 |
+#ifndef SCAN_UNENCODED_BOUNCES |
|
2413 | 2414 |
switch(messageGetEncoding(aMessage)) { |
2414 | 2415 |
case NOENCODING: |
2415 | 2416 |
case EIGHTBIT: |
... | ... |
@@ -2428,6 +2434,7 @@ parseEmailBody(message *messageIn, text *textIn, const char *dir, const table_t |
2428 | 2428 |
continue; |
2429 | 2429 |
} |
2430 | 2430 |
} |
2431 |
+#endif |
|
2431 | 2432 |
#if 0 |
2432 | 2433 |
messageAddStrAtTop(aMessage, |
2433 | 2434 |
"Received: by clamd (message/rfc822)"); |