git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@552 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/05/10 20:35:11... | ... |
@@ -17,8 +17,8 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: mbox.c,v $ |
20 |
- * Revision 1.70 2004/05/10 11:24:18 nigelhorne |
|
21 |
- * Handle bounce message false positives |
|
20 |
+ * Revision 1.71 2004/05/10 11:35:11 nigelhorne |
|
21 |
+ * No need to update mbox.c for cli_filetype problem |
|
22 | 22 |
* |
23 | 23 |
* Revision 1.69 2004/05/06 11:26:49 nigelhorne |
24 | 24 |
* Force attachments marked as RFC822 messages to be scanned |
... | ... |
@@ -201,7 +201,7 @@ |
201 | 201 |
* Compilable under SCO; removed duplicate code with message.c |
202 | 202 |
* |
203 | 203 |
*/ |
204 |
-static char const rcsid[] = "$Id: mbox.c,v 1.70 2004/05/10 11:24:18 nigelhorne Exp $"; |
|
204 |
+static char const rcsid[] = "$Id: mbox.c,v 1.71 2004/05/10 11:35:11 nigelhorne Exp $"; |
|
205 | 205 |
|
206 | 206 |
#if HAVE_CONFIG_H |
207 | 207 |
#include "clamav-config.h" |
... | ... |
@@ -1435,28 +1435,26 @@ parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, con |
1435 | 1435 |
} |
1436 | 1436 |
blobDestroy(b); |
1437 | 1437 |
} |
1438 |
+ } else if((encodingLine(mainMessage) != NULL) && |
|
1439 |
+ ((t_line = bounceBegin(mainMessage)) != NULL)) { |
|
1440 |
+ /* |
|
1441 |
+ * Attempt to save the original (unbounced) |
|
1442 |
+ * message - clamscan will find that in the |
|
1443 |
+ * directory and call us again (with any luck) |
|
1444 |
+ * having found an e-mail message to handle |
|
1445 |
+ */ |
|
1446 |
+ if((b = textToBlob(t_line, NULL)) != NULL) { |
|
1447 |
+ cli_dbgmsg("Found a bounce message\n"); |
|
1448 |
+ |
|
1449 |
+ saveFile(b, dir); |
|
1450 |
+ |
|
1451 |
+ blobDestroy(b); |
|
1452 |
+ } |
|
1438 | 1453 |
} else { |
1439 | 1454 |
bool saveIt; |
1440 |
- bool savedBounce = FALSE; |
|
1441 | 1455 |
|
1442 | 1456 |
cli_dbgmsg("Not found uuencoded file\n"); |
1443 | 1457 |
|
1444 |
- if((encodingLine(mainMessage) != NULL) && |
|
1445 |
- ((t_line = bounceBegin(mainMessage)) != NULL)) |
|
1446 |
- /* |
|
1447 |
- * Attempt to save the original (unbounced) |
|
1448 |
- * message - clamscan will find that in the |
|
1449 |
- * directory and call us again (with any luck) |
|
1450 |
- * having found an e-mail message to handle |
|
1451 |
- */ |
|
1452 |
- if((b = textToBlob(t_line, NULL)) != NULL) { |
|
1453 |
- cli_dbgmsg("Found a bounce message\n"); |
|
1454 |
- |
|
1455 |
- saveFile(b, dir); |
|
1456 |
- |
|
1457 |
- blobDestroy(b); |
|
1458 |
- savedBounce = TRUE; |
|
1459 |
- } |
|
1460 | 1458 |
if(messageGetMimeType(mainMessage) == MESSAGE) |
1461 | 1459 |
/* |
1462 | 1460 |
* Quick peek, if the encapsulated |
... | ... |
@@ -1470,7 +1468,7 @@ parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, con |
1470 | 1470 |
* Some bounces include the message |
1471 | 1471 |
* body without the headers |
1472 | 1472 |
*/ |
1473 |
- if((!savedBounce) && ((b = blobCreate()) != NULL)) { |
|
1473 |
+ if((b = blobCreate()) != NULL) { |
|
1474 | 1474 |
cli_dbgmsg("Found a bounce message with no header\n"); |
1475 | 1475 |
blobAddData(b, "Received: by clamd\n", 19); |
1476 | 1476 |
|