[evolution-patches] Patch for fixing #73344 (shared-folder plugin)



Hi,

The attached patch fixes http://bugzilla.ximian.com/show_bug.cgi?
id=73344

Changes are made in the shared-folder plug-in (install-shared.c).

Thanks,
Vivek Jain
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/shared-folder/ChangeLog,v
retrieving revision 1.11
diff -u -p -r1.11 ChangeLog
--- ChangeLog	25 Feb 2005 15:54:24 -0000	1.11
+++ ChangeLog	8 Mar 2005 11:37:18 -0000
@@ -1,3 +1,9 @@
+2005-03-08 Vivek Jain <jvivek novell com>
+	
+	**Fixes #73344 
+	* install-shared.c :(install_folder_response):
+	 delete the message from the cache after accepting notification
+	  
 2005-02-24  Björn Torkelsson  <torkel acc umu se>
 
        * org-gnome-shared-folder.eplug.in: Added Groupwise to name.
Index: install-shared.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/shared-folder/install-shared.c,v
retrieving revision 1.7
diff -u -p -r1.7 install-shared.c
--- install-shared.c	19 Jan 2005 13:17:28 -0000	1.7
+++ install-shared.c	8 Mar 2005 11:37:18 -0000
@@ -35,6 +35,7 @@
 #include <mail/em-event.h>
 #include <mail/mail-component.h>
 #include <camel/camel-mime-message.h>
+#include <camel/camel-folder.h>
 #include <camel/camel-stream.h>
 #include <camel/camel-session.h>
 #include <camel/camel-stream-mem.h>
@@ -69,6 +70,8 @@ install_folder_response (EMFolderSelecto
 	gchar *container_id,*item_id;
 	CamelException ex;
 	CamelStore *store;
+	CamelFolder *folder;
+	CamelFolderChangeInfo *changes;
 	EAccount *account;
 	CamelProvider *provider;
 	EGwConnection *cnc;
@@ -105,6 +108,12 @@ install_folder_response (EMFolderSelecto
 
 			if(e_gw_connection_accept_shared_folder (cnc, folder_name, container_id, item_id, NULL) == E_GW_CONNECTION_STATUS_OK) {
 
+				
+				folder = camel_store_get_folder (store, "Mailbox", 0, NULL);
+				changes = camel_folder_change_info_new ();
+				camel_folder_change_info_remove_uid (changes, (char *) item_id);
+				camel_folder_summary_remove_uid (folder->summary, item_id);
+				camel_object_trigger_event (CAMEL_OBJECT (folder), "folder_changed", changes);	
 				uri = camel_url_to_string (((CamelService *) store)->url, CAMEL_URL_HIDE_ALL);
 				account = mail_config_get_account_by_source_url (uri);
 				uri = account->source->url;


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