aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2008-07-03 11:17:25 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2008-07-03 11:17:25 +0800
commit69aedac70244d4e131ae1c3884f1f82ee51a4b64 (patch)
treead1a0f54b49624a94b5ff2220689685f817dae94 /mail
parent0f949ecce655021309280eb881363d63ff87d5e5 (diff)
downloadgsoc2013-evolution-69aedac70244d4e131ae1c3884f1f82ee51a4b64.tar
gsoc2013-evolution-69aedac70244d4e131ae1c3884f1f82ee51a4b64.tar.gz
gsoc2013-evolution-69aedac70244d4e131ae1c3884f1f82ee51a4b64.tar.bz2
gsoc2013-evolution-69aedac70244d4e131ae1c3884f1f82ee51a4b64.tar.lz
gsoc2013-evolution-69aedac70244d4e131ae1c3884f1f82ee51a4b64.tar.xz
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')
-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;
}