aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 1ea817dd43..eb2115f763 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -434,6 +434,10 @@ search_func (ETreeModel *model, ETreePath path, struct search_func_data *data)
info = get_message_info (data->message_list, path);
if (info && (info->flags & data->mask) == data->flags) {
+ if (data->message_list->cursor_uid) {
+ g_free (data->message_list->cursor_uid);
+ data->message_list->cursor_uid = g_strdup (camel_message_info_uid (info));
+ }
gtk_signal_emit (GTK_OBJECT (data->message_list), message_list_signals[MESSAGE_SELECTED],
camel_message_info_uid (info));
return TRUE;