Add a "parent" field to CamelFolderInfo.
authorDan Winship <danw@src.gnome.org>
Wed, 25 Oct 2000 15:27:17 +0000 (15:27 +0000)
committerDan Winship <danw@src.gnome.org>
Wed, 25 Oct 2000 15:27:17 +0000 (15:27 +0000)
commitd131983ad0be46b2170ab266e41d27b0000af79f
tree334bd1251d97c122caf684f7ee089c5bf5ef8a71
parent6f6bcc1f02d52a6508618eb675edf4a250071d33
Add a "parent" field to CamelFolderInfo.

* camel-store.h: Add a "parent" field to CamelFolderInfo.

* camel-store.c (camel_folder_info_build): Deal with "parent"
(camel_store_folder_subscribed, camel_store_subscribe_folder,
camel_store_unsubscribe_folder): Add g_return_if_fails checking
that the folder supports subscriptions.

* providers/imap/camel-imap-store.c (folder_subscribed,
subscribe_folder, unsubscribe_folder): Remove "+ 1"s since the
mail subscribe UI won't prepend / to the folder names now.
(get_folder_info): Clear the "parent" field of the folderinfos
when removing an empty top level.

* providers/nntp/camel-nntp-store.c (nntp_store_folder_subscribed,
nntp_store_subscribe_folder, nntp_store_unsubscribe_folder):
Remove "+ 1"s since the mail subscribe UI won't prepend / to the
folder names now.
camel/ChangeLog
camel/camel-store.c
camel/camel-store.h
camel/providers/imap/camel-imap-store.c
camel/providers/nntp/camel-nntp-store.c