aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-local.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-local.c')
-rw-r--r--mail/mail-local.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/mail-local.c b/mail/mail-local.c
index 4d2a7e0615..b0195ff899 100644
--- a/mail/mail-local.c
+++ b/mail/mail-local.c
@@ -61,6 +61,8 @@
#include "folder-browser.h"
#include "mail-mt.h"
+#include "mail-vfolder.h"
+
#define d(x)
@@ -519,6 +521,9 @@ register_folder_registered(struct _mail_msg *mm)
camel_vee_folder_add_folder (CAMEL_VEE_FOLDER (store->vtrash),
local_folder->folder);
+ /* add the folder to the vfolder lists FIXME: merge stuff above with this */
+ vfolder_register_source(local_folder->folder);
+
unread = local_folder->last_unread;
local_folder->last_unread = 0;
local_folder_changed (CAMEL_OBJECT (local_folder->folder), GINT_TO_POINTER (unread),