+2003-04-12 [paul] 0.8.11claws87
+
+ * src/plugins/clamav/clamav_plugin.c
+ activate enable/disable archive scanning option
+
+ * src/plugins/clamav/.cvsignore ** NEW FILE **
+
2003-04-12 [paul] 0.8.11claws86
* src/plugins/Makefile.am
MimeInfo *child;
gchar *infile;
gchar *outfile;
+ gint scan_archive = 0;
int ret, no;
unsigned long int size;
limits.maxfilesize = config.clamav_max_size * 1048576; /* maximal archived file size == 10 Mb */
limits.maxreclevel = 8; /* maximal recursion level */
+ if (config.clamav_archive_enable)
+ scan_archive = TRUE;
+
while (child != NULL) {
if (child->children || child->mime_type == MIME_MULTIPART) {
child = procmime_mimeinfo_next(child);
g_warning("Can't get the part of multipart message.");
else {
debug_print("Scanning %s\n", outfile);
-
if((ret = cl_scanfile(outfile, &virname, &size, root,
- &limits, CL_ARCHIVE)) == CL_VIRUS) {
+ &limits, scan_archive)) == CL_VIRUS) {
is_infected = TRUE;
debug_print("Detected %s virus.\n", virname);
} else {