summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSankar P <psankar@novell.com>2007-11-16 13:22:41 +0000
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2007-11-16 13:22:41 +0000
commit34b7a7c6c834742733f9f77868d5df613c1ca510 (patch)
tree8420ddcbfbda687f32d99810e13a04c1dc45cc18
parent350e7b744f450c271b23e1f92c5eebeccaf56c6b (diff)
downloadevolution-data-server-34b7a7c6c834742733f9f77868d5df613c1ca510.tar.gz
** Fixes bug #481093
2007-11-16 Sankar P <psankar@novell.com> ** Fixes bug #481093 * camel-groupwise-folder.c: (groupwise_sync_summary), (groupwise_transfer_messages_to): Move mail to/from sent-items case missed while porting. Solves (un)read count issues as well svn path=/branches/gnome-2-20/; revision=8220
-rw-r--r--camel/providers/groupwise/ChangeLog9
-rw-r--r--camel/providers/groupwise/camel-groupwise-folder.c7
2 files changed, 13 insertions, 3 deletions
diff --git a/camel/providers/groupwise/ChangeLog b/camel/providers/groupwise/ChangeLog
index 21d9fac98..8ddb87771 100644
--- a/camel/providers/groupwise/ChangeLog
+++ b/camel/providers/groupwise/ChangeLog
@@ -1,3 +1,12 @@
+2007-11-16 Sankar P <psankar@novell.com>
+
+ ** Fixes bug #481093
+
+ * camel-groupwise-folder.c: (groupwise_sync_summary),
+ (groupwise_transfer_messages_to):
+ Move mail to/from sent-items case missed while porting.
+ Solves (un)read count issues as well
+
2007-09-07 Milan Crha <mcrha@redhat.com>
** Fix for bug #473880
diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c
index 49ccb1637..e377f8528 100644
--- a/camel/providers/groupwise/camel-groupwise-folder.c
+++ b/camel/providers/groupwise/camel-groupwise-folder.c
@@ -591,6 +591,7 @@ static void
groupwise_sync_summary (CamelFolder *folder, CamelException *ex)
{
camel_folder_summary_save (folder->summary);
+ camel_store_summary_touch ((CamelStoreSummary *)((CamelGroupwiseStore *)folder->parent_store)->summary);
camel_store_summary_save ((CamelStoreSummary *)((CamelGroupwiseStore *)folder->parent_store)->summary);
}
@@ -2208,12 +2209,12 @@ groupwise_transfer_messages_to (CamelFolder *source, GPtrArray *uids,
if (status == E_GW_CONNECTION_STATUS_OK) {
if (delete_originals) {
- if ( !strcmp(source->full_name, SENT) ) {
+ /*if ( !strcmp(source->full_name, SENT) ) {
camel_folder_delete_message(source, uids->pdata[index]);
- } else {
+ } else {*/
camel_folder_summary_remove_uid (source->summary, uids->pdata[index]);
camel_folder_change_info_remove_uid (changes, uids->pdata[index]);
- }
+ //}
}
} else {
g_warning ("Warning!! Could not move item : %s\n", (char *)uids->pdata[index]);