aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local/camel-local-folder.c
diff options
context:
space:
mode:
authorMichael Zucci <zucchi@src.gnome.org>2001-09-21 08:55:36 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-09-21 08:55:36 +0800
commit5de6e2a14b9d3e4fc3260cfa195921d020249a22 (patch)
tree59a15ad96fb6ba95b33a855e205cbb3a2849e02e /camel/providers/local/camel-local-folder.c
parent8ee783370fbc98b8a6556a65eae8aa1c94d0cc86 (diff)
downloadgsoc2013-evolution-5de6e2a14b9d3e4fc3260cfa195921d020249a22.tar.gz
gsoc2013-evolution-5de6e2a14b9d3e4fc3260cfa195921d020249a22.tar.zst
gsoc2013-evolution-5de6e2a14b9d3e4fc3260cfa195921d020249a22.zip
Setup unread count properly, and also setup the url properly.
* providers/local/camel-local-folder.c (camel_local_folder_construct): Setup unread count properly, and also setup the url properly. (scan_dir): Dont include empty host part in url for folder. (scan_dir): Lookup folder counts for any folders we currenty have open. svn path=/trunk/; revision=13035
Diffstat (limited to 'camel/providers/local/camel-local-folder.c')
-rw-r--r--camel/providers/local/camel-local-folder.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/camel/providers/local/camel-local-folder.c b/camel/providers/local/camel-local-folder.c
index 2887fcce73..2e9e348695 100644
--- a/camel/providers/local/camel-local-folder.c
+++ b/camel/providers/local/camel-local-folder.c
@@ -224,9 +224,11 @@ camel_local_folder_construct(CamelLocalFolder *lf, CamelStore *parent_store, con
fi = g_new0 (CamelFolderInfo, 1);
fi->full_name = g_strdup (full_name);
fi->name = g_strdup (name);
- fi->url = g_strdup (lf->folder_path);
- fi->unread_message_count = -1;
+ fi->url = g_strdup_printf("%s:%s#%s", ((CamelService *)parent_store)->url->protocol,
+ ((CamelService *)parent_store)->url->protocol, full_name);
+ fi->unread_message_count = camel_folder_get_unread_message_count(folder);
camel_folder_info_build_path(fi, '/');
+
camel_object_trigger_event(CAMEL_OBJECT (parent_store), "folder_created", fi);
camel_folder_info_free(fi);