evolution-data-server r9858 - trunk/camel/providers/groupwise



Author: psankar
Date: Mon Dec 29 07:09:49 2008
New Revision: 9858
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9858&view=rev

Log:
2008-12-29  Sankar P  <psankar novell com>

	** Patch committed on behalf of Simon Brys <sbrys novell com>

	** Fix for bnc bug #462575

	* camel/providers/groupwise/camel-groupwise-store.c:
	Extend function to honor "Check in all folders" setting.

Modified:
   trunk/camel/providers/groupwise/ChangeLog
   trunk/camel/providers/groupwise/camel-groupwise-store.c

Modified: trunk/camel/providers/groupwise/camel-groupwise-store.c
==============================================================================
--- trunk/camel/providers/groupwise/camel-groupwise-store.c	(original)
+++ trunk/camel/providers/groupwise/camel-groupwise-store.c	Mon Dec 29 07:09:49 2008
@@ -1430,6 +1430,17 @@
 		return NULL;
 }
 
+static gboolean
+groupwise_can_refresh_folder (CamelStore *store, CamelFolderInfo *info, CamelException *ex)
+{
+	gboolean res;
+
+	res = CAMEL_STORE_CLASS(parent_class)->can_refresh_folder (store, info, ex) ||
+	      (camel_url_get_param (((CamelService *)store)->url, "check_all") != NULL);
+
+	return res;
+}
+
 /*
  * Function to check if we are both connected and are _actually_
  * online. Based on an equivalient function in IMAP
@@ -1498,6 +1509,7 @@
 	camel_store_class->get_folder_info = groupwise_get_folder_info;
 	camel_store_class->free_folder_info = camel_store_free_folder_info_full;
 	camel_store_class->get_trash = groupwise_get_trash;
+	camel_store_class->can_refresh_folder = groupwise_can_refresh_folder;
 }
 
 
@@ -1597,3 +1609,4 @@
 	
 	return camel_groupwise_store_type;
 }
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]