* src/filter.c
[claws.git] / src / filter.c
index 176114bfbf2af1de1b2160a3997d6c087572517d..67d64a5d441bd77a136a1cd70ecd166676ed2def 100644 (file)
@@ -25,6 +25,7 @@
 #include <string.h>
 #include <strings.h>
 #include <stdlib.h>
+#include <sys/types.h>
 #include <regex.h>
 
 #include "intl.h"
@@ -51,12 +52,12 @@ FolderItem *filter_get_dest_folder(GSList *fltlist, const gchar *file)
                if (filter_match_condition(filter, hlist)) {
                        if (filter->action == FLT_NOTRECV) {
                                if (!dummy) {
-                                       dummy = folder_item_new(NULL, NULL);
+                                       dummy = g_new0(FolderItem, 0);
                                        dummy->path = g_strdup(FILTER_NOT_RECEIVE);
                                }
                                dest_folder = dummy;
                        } else
-                               dest_folder = folder_find_item_from_path
+                               dest_folder = folder_find_item_from_identifier
                                        (filter->dest);
                        break;
                }