aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder-utils.c')
-rw-r--r--camel/camel-folder-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-folder-utils.c b/camel/camel-folder-utils.c
index e8459134ba..a7f7aa8cc2 100644
--- a/camel/camel-folder-utils.c
+++ b/camel/camel-folder-utils.c
@@ -69,8 +69,8 @@ camel_aml_expunge_messages (GList *aml,
guint nb_expunged = 0;
GList *expunged_messages;
- message_node = folder->message_list;
+ message_node = aml;
/* look in folder message list which messages
* need to be expunged */
while ( message_node) {
@@ -83,7 +83,7 @@ camel_aml_expunge_messages (GList *aml,
if (camel_mime_message_get_flag (message, "DELETED")) {
/* remove the message from active message list */
- g_list_remove_link (folder->message_list, message_node);
+ g_list_remove_link (aml, message_node);
g_list_free_1 (message_node);
camel_mime_message_set_flag (message, "EXPUNGED", TRUE);
expunged_messages = g_list_prepend (expunged_messages, message);