aboutsummaryrefslogtreecommitdiff
path: root/src/inc.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-02-06 07:59:36 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-02-06 07:59:36 +0000
commit57d3cf597bc3161b682906beac134d80f6f9b8d7 (patch)
treef4a0b0d5484cdc6a5d4e6da1bb7512abd2dcdaf4 /src/inc.c
parente80b802395604008b0f978e454e95affb39e240a (diff)
filter junk mails from local mbox even if prefs_common.filter_on_inc is FALSE.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1531 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/inc.c')
-rw-r--r--src/inc.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/inc.c b/src/inc.c
index 9bed8960..0aeeb9b3 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -1400,26 +1400,23 @@ static gint get_spool(FolderItem *dest, const gchar *mbox)
debug_print(_("Getting new messages from %s into %s...\n"),
mbox, dest->path);
- if (prefs_common.filter_on_inc)
- folder_table = g_hash_table_new(NULL, NULL);
- msgs = proc_mbox(dest, tmp_mbox, folder_table);
+ folder_table = g_hash_table_new(NULL, NULL);
+
+ msgs = proc_mbox_full(dest, tmp_mbox, folder_table,
+ prefs_common.filter_on_inc);
g_unlink(tmp_mbox);
if (msgs >= 0) empty_mbox(mbox);
unlock_mbox(mbox, lockfd, LOCK_FLOCK);
- if (folder_table) {
- if (!prefs_common.scan_all_after_inc) {
- folder_item_scan_foreach(folder_table);
- folderview_update_item_foreach
- (folder_table, !prefs_common.open_inbox_on_inc);
- }
- g_hash_table_destroy(folder_table);
- } else if (!prefs_common.scan_all_after_inc) {
- folder_item_scan(dest);
- folderview_update_item(dest, TRUE);
+ if (!prefs_common.scan_all_after_inc) {
+ folder_item_scan_foreach(folder_table);
+ folderview_update_item_foreach
+ (folder_table, !prefs_common.open_inbox_on_inc);
}
+ g_hash_table_destroy(folder_table);
+
return msgs;
}