summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSankar P <psankar@novell.com>2008-05-19 11:11:53 +0000
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2008-05-19 11:11:53 +0000
commit33e6dbe5483de8165a8d697c946278e14dbb8c99 (patch)
treef575e78444ad574431a12291f9e16f01bd1d2833
parentbfa7848dc5f23e952d3f062bc44da5158285824a (diff)
downloadevolution-data-server-33e6dbe5483de8165a8d697c946278e14dbb8c99.tar.gz
Use the right iterator to prevent a crash in offline mail movement.
2008-05-19 Sankar P <psankar@novell.com> * camel-groupwise-folder.c: (groupwise_transfer_messages_to): Use the right iterator to prevent a crash in offline mail movement. ** Fix for bug #531009 svn path=/trunk/; revision=8810
-rw-r--r--camel/providers/groupwise/ChangeLog7
-rw-r--r--camel/providers/groupwise/camel-groupwise-folder.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/camel/providers/groupwise/ChangeLog b/camel/providers/groupwise/ChangeLog
index db61a80f8..1439d94d3 100644
--- a/camel/providers/groupwise/ChangeLog
+++ b/camel/providers/groupwise/ChangeLog
@@ -1,5 +1,12 @@
2008-05-19 Sankar P <psankar@novell.com>
+ * camel-groupwise-folder.c: (groupwise_transfer_messages_to):
+ Use the right iterator to prevent a crash in offline mail movement.
+
+ ** Fix for bug #531009
+
+2008-05-19 Sankar P <psankar@novell.com>
+
* camel-groupwise-folder.c: (gw_update_summary):
Added a necessary condition to handle a specific server response
and to prevent a crash.
diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c
index 7418b6a54..531a77563 100644
--- a/camel/providers/groupwise/camel-groupwise-folder.c
+++ b/camel/providers/groupwise/camel-groupwise-folder.c
@@ -2169,8 +2169,8 @@ groupwise_transfer_messages_to (CamelFolder *source, GPtrArray *uids,
_("This message is not available in offline mode."));
} else {
- camel_folder_summary_remove_uid (source->summary, uids->pdata[index]);
- camel_folder_change_info_remove_uid (changes, uids->pdata[index]);
+ camel_folder_summary_remove_uid (source->summary, uids->pdata[i]);
+ camel_folder_change_info_remove_uid (changes, uids->pdata[i]);
}
}
}