evolution-data-server r9494 - branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi
- From: jjohnny svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9494 - branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi
- Date: Mon, 8 Sep 2008 11:16:07 +0000 (UTC)
Author: jjohnny
Date: Mon Sep 8 11:16:07 2008
New Revision: 9494
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9494&view=rev
Log:
Filter public folders for subscription editor.
Modified:
branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/ChangeLog
branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.c
Modified: branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.c
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.c (original)
+++ branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.c Mon Sep 8 11:16:07 2008
@@ -870,6 +870,11 @@
GPtrArray *folders;
char *path, *name;
int i;
+ gboolean recursive, subscribed, info_fast = false;
+
+ recursive = (flags & CAMEL_STORE_FOLDER_INFO_RECURSIVE);
+ subscribed = (flags & CAMEL_STORE_FOLDER_INFO_SUBSCRIBED);
+ info_fast = (flags & CAMEL_STORE_FOLDER_INFO_FAST);
folders = g_ptr_array_new ();
@@ -893,6 +898,10 @@
if (si == NULL)
continue;
+ /* Based on exchange connector. Allow only public folder heirarchy */
+ if ((!subscribed) && info_fast)
+ if (!(si->flags & CAMEL_MAPI_FOLDER_PUBLIC)) continue;
+
if ( !strcmp(name, camel_mapi_store_info_full_name (mapi_store->summary, si))
|| match_path (path, camel_mapi_store_info_full_name (mapi_store->summary, si))) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]