Browse code

Lost code from Edvin's module

git-svn: trunk@2262

aCaB authored on 2006/09/15 02:08:41
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Sep 14 19:07:21 CEST 2006 (acab)
2
+------------------------------------
3
+  * libclamav/mbox.c: Fixing a fragment of code left behind during the merge
4
+
1 5
 Thu Sep 14 10:01:21 BST 2006 (njh)
2 6
 ----------------------------------
3 7
   * libclamav:	Phixed some buffer underruns and NULL pointers
... ...
@@ -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.330 2006/09/13 21:37:49 njh Exp $";
19
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.331 2006/09/14 17:08:41 acab Exp $";
20 20
 
21 21
 #if HAVE_CONFIG_H
22 22
 #include "clamav-config.h"
... ...
@@ -4640,9 +4640,12 @@ do_multipart(message *mainMessage, message **messages, int i, int *rc, mbox_ctx
4640 4640
 						free(filename);
4641 4641
 					}
4642 4642
 				} else {
4643
+					const int is_html = tableFind(mctx->subtypeTable, cptr) == HTML;
4644
+#ifdef CL_EXPERIMENTAL
4643 4645
 					if(mctx->ctx->options&CL_SCAN_MAILURL)
4644
-						if(tableFind(mctx->subtypeTable, cptr) == HTML)
4645
-							checkURLs(aMessage, mctx, rc, 1);
4646
+						if(is_html)
4647
+#endif
4648
+							checkURLs(aMessage, mctx, rc, is_html);
4646 4649
 					messageAddArgument(aMessage,
4647 4650
 						"filename=mixedtextportion");
4648 4651
 				}