git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@646 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/07/01 04:50:31... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Wed Jun 30 20:49:46 BST 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/mbox.c: Some TR.Happy99.SKA were getting through |
|
4 |
+ |
|
1 | 5 |
Wed Jun 30 15:31:54 BST 2004 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav/mbox.c: Fix compilation error on old Solaris |
... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: mbox.c,v $ |
20 |
+ * Revision 1.85 2004/06/30 19:48:58 nigelhorne |
|
21 |
+ * Some TR.Happy99.SKA were getting through |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.84 2004/06/30 14:30:40 nigelhorne |
21 | 24 |
* Fix compilation error on Solaris |
22 | 25 |
* |
... | ... |
@@ -240,7 +243,7 @@ |
240 | 240 |
* Compilable under SCO; removed duplicate code with message.c |
241 | 241 |
* |
242 | 242 |
*/ |
243 |
-static char const rcsid[] = "$Id: mbox.c,v 1.84 2004/06/30 14:30:40 nigelhorne Exp $"; |
|
243 |
+static char const rcsid[] = "$Id: mbox.c,v 1.85 2004/06/30 19:48:58 nigelhorne Exp $"; |
|
244 | 244 |
|
245 | 245 |
#if HAVE_CONFIG_H |
246 | 246 |
#include "clamav-config.h" |
... | ... |
@@ -876,8 +879,17 @@ parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, con |
876 | 876 |
|
877 | 877 |
if(t_line == NULL) { |
878 | 878 |
cli_dbgmsg("Empty part\n"); |
879 |
- messageDestroy(aMessage); |
|
880 |
- --multiparts; |
|
879 |
+ /* |
|
880 |
+ * Remove this part unless there's |
|
881 |
+ * a uuencoded portion somewhere in |
|
882 |
+ * the complete message that we may |
|
883 |
+ * throw away by mistake if the MIME |
|
884 |
+ * encoding information is incorrect |
|
885 |
+ */ |
|
886 |
+ if(uuencodeBegin(mainMessage) == NULL) { |
|
887 |
+ messageDestroy(aMessage); |
|
888 |
+ --multiparts; |
|
889 |
+ } |
|
881 | 890 |
continue; |
882 | 891 |
} |
883 | 892 |
|