aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-20 15:29:26 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-20 15:29:26 +0800
commit41dcb0c01b44af388aa51a200d411ea4fe2eeb83 (patch)
tree670f88df5b73769ae23372fc87eb5d26ee84f901 /mail/mail-callbacks.c
parentfd2c106a51f532e41b403f6df4fd1e3a201db393 (diff)
downloadgsoc2013-evolution-41dcb0c01b44af388aa51a200d411ea4fe2eeb83.tar
gsoc2013-evolution-41dcb0c01b44af388aa51a200d411ea4fe2eeb83.tar.gz
gsoc2013-evolution-41dcb0c01b44af388aa51a200d411ea4fe2eeb83.tar.bz2
gsoc2013-evolution-41dcb0c01b44af388aa51a200d411ea4fe2eeb83.tar.lz
gsoc2013-evolution-41dcb0c01b44af388aa51a200d411ea4fe2eeb83.tar.xz
gsoc2013-evolution-41dcb0c01b44af388aa51a200d411ea4fe2eeb83.tar.zst
gsoc2013-evolution-41dcb0c01b44af388aa51a200d411ea4fe2eeb83.zip
camel_folder_create_folder can now return a heirachial tree so subscribe
2001-08-20 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (storage_create_folder): camel_folder_create_folder can now return a heirachial tree so subscribe to down the tree. svn path=/trunk/; revision=12257
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index ed98392aa1..167ac0af55 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -2115,12 +2115,12 @@ static void
create_folders (EvolutionStorage *storage, const char *prefix, CamelFolderInfo *fi)
{
char *path;
-
+
mail_folder_cache_set_update_estorage (fi->url, storage);
mail_folder_cache_note_folderinfo (fi->url, fi);
-
+
path = g_strdup_printf ("%s/%s", prefix, fi->name);
-
+
if (!strncmp (fi->url, "vtrash:", 7))
evolution_storage_new_folder (storage, path, fi->name,
"vtrash", fi->url,
@@ -2131,7 +2131,7 @@ create_folders (EvolutionStorage *storage, const char *prefix, CamelFolderInfo *
"mail", fi->url,
fi->name, /* description */
fi->unread_message_count > 0);
-
+
if (fi->child)
create_folders (storage, path, fi->child);
g_free (path);
@@ -2141,12 +2141,12 @@ create_folders (EvolutionStorage *storage, const char *prefix, CamelFolderInfo *
}
void
-folder_created (CamelStore *store, const char *prefix, CamelFolderInfo *fi)
+folder_created (CamelStore *store, const char *prefix, CamelFolderInfo *root)
{
EvolutionStorage *storage;
if ((storage = mail_lookup_storage (store))) {
- create_folders (storage, prefix, fi);
+ create_folders (storage, prefix, root);
bonobo_object_unref (BONOBO_OBJECT (storage));
}
}