some fixes in filtering code
authorHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Tue, 20 Nov 2001 18:26:54 +0000 (18:26 +0000)
committerHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Tue, 20 Nov 2001 18:26:54 +0000 (18:26 +0000)
src/filtering.c

index fcf7f70..cfdc077 100644 (file)
@@ -524,7 +524,6 @@ static gboolean filteringprop_apply(FilteringProp * filtering, MsgInfo * info,
                                               folder_table))) {
                        action_str = filteringaction_to_string(buf, sizeof buf, filtering->action);
                        g_warning(_("action %s could not be applied"), action_str);
-                       g_free(action_str);
                }
 
                switch(filtering->action->type) {
@@ -1067,10 +1066,6 @@ gchar *filteringaction_to_string(gchar *dest, gint destlen, FilteringAction *act
                g_snprintf(dest, destlen, "%s %d", command_str, action->labelcolor);
                return dest;  
 
-               g_snprintf(dest, destlen, "%s %d \"%s\"", command_str,
-                          action->account_id, action->destination);
-               return dest;
-
        default:
                return NULL;
        }