git-svn: trunk@1394
Nigel Horne authored on 2005/03/16 21:14:37... | ... |
@@ -15,7 +15,7 @@ |
15 | 15 |
* along with this program; if not, write to the Free Software |
16 | 16 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | 17 |
*/ |
18 |
-static char const rcsid[] = "$Id: mbox.c,v 1.226 2005/03/15 18:01:25 nigelhorne Exp $"; |
|
18 |
+static char const rcsid[] = "$Id: mbox.c,v 1.227 2005/03/16 12:14:37 nigelhorne Exp $"; |
|
19 | 19 |
|
20 | 20 |
#if HAVE_CONFIG_H |
21 | 21 |
#include "clamav-config.h" |
... | ... |
@@ -103,7 +103,19 @@ typedef enum { FALSE = 0, TRUE = 1 } bool; |
103 | 103 |
/* |
104 | 104 |
* Code does exist to run FOLLORURLS on systems without libcurl, however that |
105 | 105 |
* is not recommended so it is not compiled by default |
106 |
+ * |
|
107 |
+ * On Solaris, the clamAV build system uses the SUN supplied ld instead of |
|
108 |
+ * the GNU ld causing this error. Therefore you cannot use WITH_CURL on |
|
109 |
+ * Solaris, you must configure with "--without-libcurl" |
|
110 |
+ * Fails to link on Solaris 10 with this error: |
|
111 |
+ * Undefined first referenced |
|
112 |
+ * symbol in file |
|
113 |
+ * __floatdidf /opt/sfw/lib/libcurl.s |
|
106 | 114 |
*/ |
115 |
+#ifdef C_SOLARIS |
|
116 |
+#undef WITH_CURL |
|
117 |
+#endif |
|
118 |
+ |
|
107 | 119 |
#ifdef WITH_CURL |
108 | 120 |
#define FOLLOWURLS 5 /* |
109 | 121 |
* Maximum number of URLs scanned in a message |
... | ... |
@@ -2465,7 +2477,7 @@ parseEmailBody(message *messageIn, text *textIn, const char *dir, const table_t |
2465 | 2465 |
|
2466 | 2466 |
if((fb = messageToFileblob(mainMessage, dir)) != NULL) { |
2467 | 2467 |
if((cptr = fileblobGetFilename(fb)) != NULL) |
2468 |
- cli_dbgmsg("Found uuencoded message %s\n", cptr); |
|
2468 |
+ cli_dbgmsg("Saving uuencoded message %s\n", cptr); |
|
2469 | 2469 |
fileblobDestroy(fb); |
2470 | 2470 |
} |
2471 | 2471 |
rc = 1; |
... | ... |
@@ -2524,9 +2536,11 @@ parseEmailBody(message *messageIn, text *textIn, const char *dir, const table_t |
2524 | 2524 |
if(t && ((fb = fileblobCreate()) != NULL)) { |
2525 | 2525 |
cli_dbgmsg("Found a bounce message\n"); |
2526 | 2526 |
fileblobSetFilename(fb, dir, "bounce"); |
2527 |
- fb = textToFileblob(start, fb); |
|
2527 |
+ if(textToFileblob(start, fb) == NULL) |
|
2528 |
+ cli_dbgmsg("Nothing new to save in the bounce message"); |
|
2529 |
+ else |
|
2530 |
+ rc = 1; |
|
2528 | 2531 |
fileblobDestroy(fb); |
2529 |
- rc = 1; |
|
2530 | 2532 |
} else |
2531 | 2533 |
cli_dbgmsg("Not found a bounce message\n"); |
2532 | 2534 |
} else { |