evolution r35440 - branches/gnome-2-22/plugins/itip-formatter



Author: abharath
Date: Tue Apr 29 09:30:59 2008
New Revision: 35440
URL: http://svn.gnome.org/viewvc/evolution?rev=35440&view=rev

Log:
Committing on behalf of Chenthill Palanisamy  <pchenthill novell com>

2008-04-29  Chenthill Palanisamy  <pchenthill novell com>

        ** Fixes #338330 (bnc)
           Internet Based Calendar Events Are Declined By Evolution/GroupWise


Modified:
   branches/gnome-2-22/plugins/itip-formatter/ChangeLog
   branches/gnome-2-22/plugins/itip-formatter/itip-formatter.c

Modified: branches/gnome-2-22/plugins/itip-formatter/itip-formatter.c
==============================================================================
--- branches/gnome-2-22/plugins/itip-formatter/itip-formatter.c	(original)
+++ branches/gnome-2-22/plugins/itip-formatter/itip-formatter.c	Tue Apr 29 09:30:59 2008
@@ -1619,7 +1619,7 @@
 	gboolean status = FALSE, delete_invitation_from_cache = FALSE;
 	icalproperty *prop;
 	ECalComponentTransparency trans;
-	gboolean flag;
+	gboolean flag, save_schedules;
 
 	if (pitip->method == ICAL_METHOD_PUBLISH || pitip->method ==  ICAL_METHOD_REQUEST) {
 		if (itip_view_get_free_time_check_state (ITIP_VIEW (pitip->view)))
@@ -1644,6 +1644,8 @@
 		icalcomponent_add_property (pitip->ical_comp, prop);
 	}
 
+	save_schedules = e_cal_get_save_schedules (pitip->current_ecal);
+
 	switch (response) {
 		case ITIP_VIEW_RESPONSE_ACCEPT:
 			if (pitip->type != E_CAL_SOURCE_TYPE_JOURNAL)
@@ -1654,7 +1656,7 @@
 			if (status) {
 				e_cal_component_rescan (pitip->comp);
 				flag = update_item (pitip, response);
-				if (e_cal_get_save_schedules (pitip->current_ecal) && flag)
+				if (save_schedules && flag)
 					delete_invitation_from_cache = TRUE;
 			}
 			break;
@@ -1664,7 +1666,7 @@
 			if (status) {
 				e_cal_component_rescan (pitip->comp);
 				flag = update_item (pitip, response);
-				if (e_cal_get_save_schedules (pitip->current_ecal) && flag)
+				if (save_schedules && flag)
 					delete_invitation_from_cache = TRUE;
 
 			}
@@ -1683,7 +1685,7 @@
 			if (status) {
 				e_cal_component_rescan (pitip->comp);
 				flag = update_item (pitip, response);
-				if (e_cal_get_save_schedules (pitip->current_ecal) && flag)
+				if (save_schedules && flag)
 					delete_invitation_from_cache = TRUE;
 			}
 			break;
@@ -1743,7 +1745,7 @@
 		}
 	}
 
-	if (!delete_invitation_from_cache && pitip->delete_message) {
+	if (!save_schedules && pitip->delete_message) {
 		g_message ("Deleting!");
 		camel_folder_delete_message (pitip->folder, pitip->uid);
 	}



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