commit e99cc993548bbf79cffd009dde4e15116a3faa33
parent a3855d22a9bad0ea9792d92277193a00702b669b
Author: Oliver Lowe <o@olowe.co>
Date: Sat, 30 Aug 2025 16:54:52 +1000
mbox: delete now defunct filter option
Diffstat:
4 files changed, 7 insertions(+), 15 deletions(-)
diff --git a/src/import.c b/src/import.c
@@ -224,7 +224,7 @@ static void import_ok_cb(GtkWidget *widget, gpointer data)
return;
} else {
window = label_window_create(_("Importing mbox file..."));
- import_ok = proc_mbox(dest, mbox, FALSE, NULL);
+ import_ok = proc_mbox(dest, mbox, NULL);
label_window_destroy(window);
}
diff --git a/src/inc.c b/src/inc.c
@@ -1401,7 +1401,7 @@ static gint get_spool(FolderItem *dest, const gchar *mbox, PrefsAccount *account
}
close(spool);
- msgs = proc_mbox(dest, tmp_mbox, FALSE, account);
+ msgs = proc_mbox(dest, tmp_mbox, account);
unlink(tmp_mbox);
if (msgs >= 0) {
if (truncate(mbox, 0) < 0)
diff --git a/src/mbox.c b/src/mbox.c
@@ -61,8 +61,7 @@
} \
}
-gint proc_mbox(FolderItem *dest, const gchar *mbox, gboolean apply_filter,
- PrefsAccount *account)
+gint proc_mbox(FolderItem *dest, const gchar *mbox, PrefsAccount *account)
/* return values: -1 error, >=0 number of msgs added */
{
FILE *mbox_fp;
diff --git a/src/mbox.h b/src/mbox.h
@@ -24,16 +24,9 @@
#include "folder.h"
-gint proc_mbox (FolderItem *dest,
- const gchar *mbox,
- gboolean apply_filter,
- PrefsAccount *account);
-gint copy_mbox (gint srcfd,
- const gchar *dest);
-
-gint export_to_mbox (FolderItem *src,
- const gchar *mbox);
-gint export_list_to_mbox(GSList *mlist,
- const gchar *mbox);
+gint proc_mbox(FolderItem *dest, const gchar *mbox, PrefsAccount *account);
+gint copy_mbox(gint srcfd, const gchar *dest);
+gint export_to_mbox (FolderItem *src, const gchar *mbox);
+gint export_list_to_mbox(GSList *mlist, const gchar *mbox);
#endif /* __MBOX_H__ */