diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2008-07-03 11:17:25 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2008-07-03 11:17:25 +0800 |
commit | 69aedac70244d4e131ae1c3884f1f82ee51a4b64 (patch) | |
tree | ad1a0f54b49624a94b5ff2220689685f817dae94 /mail/message-list.c | |
parent | 0f949ecce655021309280eb881363d63ff87d5e5 (diff) | |
download | gsoc2013-evolution-69aedac70244d4e131ae1c3884f1f82ee51a4b64.tar.gz gsoc2013-evolution-69aedac70244d4e131ae1c3884f1f82ee51a4b64.tar.zst gsoc2013-evolution-69aedac70244d4e131ae1c3884f1f82ee51a4b64.zip |
Sort the uids so that moving/copying messages preserves mailbox ordering
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.
svn path=/trunk/; revision=35714
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 10 |
1 files changed, 6 insertions, 4 deletions
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; } |