git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@226 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/02/02 18:53:53... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Mon Feb 2 09:55:12 GMT 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: Some instances of Worm.Dumaru.Y got through the net |
|
4 |
+ |
|
1 | 5 |
Mon Feb 2 08:28:41 GMT 2004 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* contrib: added CLI to the Windows client to allow integration with |
... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: mbox.c,v $ |
20 |
+ * Revision 1.36 2004/02/02 09:52:57 nigelhorne |
|
21 |
+ * Some instances of Worm.Dumaru.Y got through the net |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.35 2004/01/28 10:15:24 nigelhorne |
21 | 24 |
* Added support to scan some bounce messages |
22 | 25 |
* |
... | ... |
@@ -96,7 +99,7 @@ |
96 | 96 |
* Compilable under SCO; removed duplicate code with message.c |
97 | 97 |
* |
98 | 98 |
*/ |
99 |
-static char const rcsid[] = "$Id: mbox.c,v 1.35 2004/01/28 10:15:24 nigelhorne Exp $"; |
|
99 |
+static char const rcsid[] = "$Id: mbox.c,v 1.36 2004/02/02 09:52:57 nigelhorne Exp $"; |
|
100 | 100 |
|
101 | 101 |
#ifndef CL_DEBUG |
102 | 102 |
/*#define NDEBUG /* map CLAMAV debug onto standard */ |
... | ... |
@@ -630,6 +633,32 @@ parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, con |
630 | 630 |
inhead = 0; |
631 | 631 |
continue; |
632 | 632 |
} |
633 |
+ if(isspace((int)*line)) { |
|
634 |
+ /* |
|
635 |
+ * The first line is |
|
636 |
+ * continuation line. |
|
637 |
+ * This is tricky |
|
638 |
+ * to handle, but |
|
639 |
+ * all we can do is our |
|
640 |
+ * best |
|
641 |
+ */ |
|
642 |
+ cli_dbgmsg("Part %d starts with a continuation line\n", |
|
643 |
+ multiparts); |
|
644 |
+ messageAddArgument(aMessage, line); |
|
645 |
+ /* |
|
646 |
+ * Give it a default |
|
647 |
+ * MIME type since |
|
648 |
+ * that may be the |
|
649 |
+ * missing line |
|
650 |
+ * |
|
651 |
+ * Choose application to |
|
652 |
+ * force a save |
|
653 |
+ */ |
|
654 |
+ if(messageGetMimeType(aMessage) == NOMIME) |
|
655 |
+ messageSetMimeType(aMessage, "application"); |
|
656 |
+ continue; |
|
657 |
+ } |
|
658 |
+ |
|
633 | 659 |
/* |
634 | 660 |
* Some clients are broken and |
635 | 661 |
* put white space after the ; |