0.9.6claws27
authorChristoph Hohmann <reboot@gmx.ch>
Tue, 14 Oct 2003 21:46:59 +0000 (21:46 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Tue, 14 Oct 2003 21:46:59 +0000 (21:46 +0000)
* src/plugins/clamav/clamav_plugin.c
        fix clamav plugin

ChangeLog.claws
configure.ac
src/plugins/clamav/clamav_plugin.c

index df6f23f..60db043 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-14 [christoph] 0.9.6claws27
+
+       * src/plugins/clamav/clamav_plugin.c
+               fix clamav plugin
+
 2003-10-14 [christoph] 0.9.6claws26
 
        * src/compose.c
index cbf194a..c858ca8 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=26
+EXTRA_VERSION=27
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 4d242c7..c67a2d6 100644 (file)
@@ -101,7 +101,6 @@ static gboolean mail_filtering_hook(gpointer source, gpointer data)
 {
        MailFilteringData *mail_filtering_data = (MailFilteringData *) source;
        MsgInfo *msginfo = mail_filtering_data->msginfo;
-       gboolean is_infected = FALSE;
        MimeInfo *mimeinfo;
 
        int ret, no;
@@ -115,6 +114,7 @@ static gboolean mail_filtering_hook(gpointer source, gpointer data)
 
        debug_print("Scanning message %d for viruses\n", msginfo->msgnum);
 
+       params.is_infected = FALSE;
        params.root = NULL;
 
        params.limits.maxfiles = 1000; /* max files */
@@ -134,7 +134,7 @@ static gboolean mail_filtering_hook(gpointer source, gpointer data)
 
        g_node_traverse(mimeinfo->node, G_PRE_ORDER, G_TRAVERSE_ALL, -1, scan_func, &params);
 
-       if (is_infected) {
+       if (params.is_infected) {
                if (config.clamav_recv_infected) {
                        FolderItem *clamav_save_folder;