aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/message-list.c10
2 files changed, 14 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index e98d9dee60..589f2171bb 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2008-07-02 Jeffrey Stedfast <fejj@novell.com>
+
+ Sort the uids so that moving/copying messages preserves mailbox
+ ordering rather than jumbled randomness.
+
+ * message-list.c (message_list_get_uids): Sort the uids.
+ (message_list_get_selected): Same.
+
2008-06-26 Milan Crha <mcrha@redhat.com>
** Fix for bug #540160
diff --git a/mail/message-list.c b/mail/message-list.c
index ad524e373a..756974c832 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -3438,9 +3438,10 @@ message_list_get_uids(MessageList *ml)
ml,
g_ptr_array_new()
};
-
+
e_tree_path_foreach(ml->tree, ml_getselected_cb, &data);
-
+ camel_folder_sort_uids (ml->folder, data.uids);
+
return data.uids;
}
@@ -3451,9 +3452,10 @@ message_list_get_selected(MessageList *ml)
ml,
g_ptr_array_new()
};
-
+
e_tree_selected_path_foreach(ml->tree, ml_getselected_cb, &data);
-
+ camel_folder_sort_uids (ml->folder, data.uids);
+
return data.uids;
}