aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-vee-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-vee-store.c')
-rw-r--r--camel/camel-vee-store.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/camel-vee-store.c b/camel/camel-vee-store.c
index f5de80fd56..30e4a43f79 100644
--- a/camel/camel-vee-store.c
+++ b/camel/camel-vee-store.c
@@ -132,9 +132,9 @@ vee_get_folder (CamelStore *store, const char *folder_name, guint32 flags, Camel
if (name == NULL)
name = vf->vname;
fi->name = g_strdup(name);
- fi->url = g_strdup_printf("vfolder:%s", vf->vname);
- fi->unread_message_count = -1;
-
+ fi->url = g_strdup_printf("vfolder:%s#%s", ((CamelService *)store)->url->path,
+ ((CamelFolder *)vf)->full_name);
+ fi->unread_message_count = camel_folder_get_message_count((CamelFolder *)vf);
camel_object_trigger_event(CAMEL_OBJECT(store), "folder_created", fi);
camel_folder_info_free(fi);
}